From: Pádraig Brady Date: Thu, 16 Sep 2021 14:21:05 +0000 (+0100) Subject: stat,tail: add support for the secretmem file system X-Git-Tag: v9.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92ffc842dc6215cf0be4b9b96f9ef919844a3570;p=thirdparty%2Fcoreutils.git stat,tail: add support for the secretmem file system * src/stat.c (human_fstype): Add case for the 'secretmem' file system type. * NEWS: Mention the Improvement. --- diff --git a/NEWS b/NEWS index 74970a4750..0772e7e528 100644 --- 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. diff --git a/src/stat.c b/src/stat.c index 867e91ce09..0c34501e34 100644 --- a/src/stat.c +++ b/src/stat.c @@ -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 */