stat,tail: sync with latest Linux file systems

* src/stat.c (human_fstype): Add "guest-memfd".
* NEWS: Mention the improvement.
This commit is contained in:
Pádraig Brady 2026-01-21 16:29:03 +00:00
parent 92df52d791
commit 28c29d103e
2 changed files with 6 additions and 0 deletions

4
NEWS
View File

@ -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.

View 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 */