stat,tail: sync file system constants from the linux kernel

* src/stat.c: Add magic constants for "devmem", and
"zonefs" file systems.
* NEWS: Mention the improvement.
This commit is contained in:
Pádraig Brady committed 2020-10-28 14:16:29 +00:00
1 parent 53324dd611
commit ff80b6b0a0
2 files changed
+7 -2

No files matched your search

+3 -2
View File
@@ -40,8 +40,9 @@ GNU coreutils NEWS -*- outline -*-
** Improvements
stat and tail now know about the "vboxsf" file system type.
stat -f -c%T now reports the file system type, and tail -f uses polling.
stat and tail now know about the "devmem", "vboxsf", and "zonefs"
file system types. stat -f -c%T now reports the file system type,
and tail -f uses polling for "vboxsf" and inotify for the others.
* Noteworthy changes in release 8.32 (2020-03-05) [stable]
+4
View File
@@ -347,6 +347,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "debugfs";
case S_MAGIC_DEVFS: /* 0x1373 local */
return "devfs";
case S_MAGIC_DEVMEM: /* 0x454D444D local */
return "devmem";
case S_MAGIC_DEVPTS: /* 0x1CD1 local */
return "devpts";
case S_MAGIC_DMA_BUF: /* 0x444D4142 local */
@@ -551,6 +553,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "z3fold";
case S_MAGIC_ZFS: /* 0x2FC12FC1 local */
return "zfs";
case S_MAGIC_ZONEFS: /* 0x5A4F4653 local */
return "zonefs";
case S_MAGIC_ZSMALLOC: /* 0x58295829 local */
return "zsmallocfs";