]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat,tail: sync with latest Linux file systems
authorPádraig Brady <P@draigBrady.com>
Wed, 21 Jan 2026 16:29:03 +0000 (16:29 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 21 Jan 2026 16:29:03 +0000 (16:29 +0000)
* src/stat.c (human_fstype): Add "guest-memfd".
* NEWS: Mention the improvement.

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index b74c19f1ff9f8b5351afed12e1555469fdb84706..e965e96ebdf28895d1ae2e04f70bc6e2bd6d672c 100644 (file)
--- 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.
 
index fcca0a769a1609db768908c54c1da9739068bf53..69042fe525ca7fbcfe3db9017cb421accea75576 100644 (file)
@@ -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 */