]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat,tail: sync file system constants from the linux kernel
authorPádraig Brady <P@draigBrady.com>
Tue, 27 Oct 2020 20:15:43 +0000 (20:15 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 28 Oct 2020 14:16:29 +0000 (14:16 +0000)
* src/stat.c: Add magic constants for "devmem", and
"zonefs" file systems.
* NEWS: Mention the improvement.

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index 7cf15498c6ecfc766a584f9158b08ccd51d593d1..efb97e6b0a4d709a844fbce25585df2880ffb6c2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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]
index 1c09073a2e59baefd9e3f856348c0836727b6fb1..70cc8d278d110727440fcbb9ed43fe0932f66abc 100644 (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";