* src/stat.c (human_fstype): Add "guest-memfd".
* NEWS: Mention the improvement.
---
 NEWS       | 4 ++++
 src/stat.c | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/NEWS b/NEWS
index b74c19f1f..e965e96eb 100644
--- a/NEWS
+++ b/NEWS
@@ -54,6 +54,10 @@ GNU coreutils NEWS                                    -*- 
outline -*-
   This augments the existing "symlinks" and "shebangs" modes already
   supported by the --enable-single-binary option.
 
+  'stat and 'tail' now know about the "guest-memfd" file system type.
+  stat -f -c%T now reports the file system type,
+  and tail -f uses polling for this file system.
+
   'tail' now accepts the --debug option, which is currently used to
   detail the --follow implementation being used.
 
diff --git a/src/stat.c b/src/stat.c
index fcca0a769..69042fe52 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -385,6 +385,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "gfs/gfs2";
     case S_MAGIC_GPFS: /* 0x47504653 remote */
       return "gpfs";
+    case S_MAGIC_GUEST_MEMFD: /* 0x474D454D remote */
+      return "guest-memfd";
     case S_MAGIC_HFS: /* 0x4244 local */
       return "hfs";
     case S_MAGIC_HFS_PLUS: /* 0x482B local */
-- 
2.52.0


Reply via email to