From 92ffc842dc6215cf0be4b9b96f9ef919844a3570 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Thu, 16 Sep 2021 15:21:05 +0100 Subject: [PATCH] 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. --- NEWS | 6 +++--- src/stat.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) 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 */ -- 2.47.3