]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat,tail: add support for the secretmem file system
authorPádraig Brady <P@draigBrady.com>
Thu, 16 Sep 2021 14:21:05 +0000 (15:21 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 16 Sep 2021 14:21:05 +0000 (15:21 +0100)
* src/stat.c (human_fstype): Add case for the 'secretmem'
file system type.
* NEWS: Mention the Improvement.

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index 74970a4750137f28ca9b070ade283cb885f78bbb..0772e7e528322b6997af39161e00b1dbe2346a83 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -133,9 +133,9 @@ GNU coreutils NEWS                                    -*- outline -*-
   rmdir now clarifies the error if a symlink_to_dir/ has not been traversed.
   This is the case on GNU/Linux systems, where the trailing slash is ignored.
 
-  stat and tail now know about the "devmem", "exfat", "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.
+  stat and tail now know about the "devmem", "exfat", "secretmem", "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.
 
   timeout now supports sub-second timeouts on macOS.
 
index 867e91ce09f12b412da50b8cf677b7a4952d271b..0c34501e34410b9096edf377654b9ff27fe9fa24 100644 (file)
@@ -493,6 +493,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "rpc_pipefs";
     case S_MAGIC_SDCARDFS: /* 0x5DCA2DF5 local */
       return "sdcardfs";
+    case S_MAGIC_SECRETMEM: /* 0x5345434D local */
+      return "secretmem";
     case S_MAGIC_SECURITYFS: /* 0x73636673 local */
       return "securityfs";
     case S_MAGIC_SELINUX: /* 0xF97CFF8C local */