]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat,tail: improve support for hostfs and smackfs
authorPádraig Brady <P@draigBrady.com>
Fri, 13 Dec 2013 14:05:53 +0000 (14:05 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 13 Dec 2013 14:05:53 +0000 (14:05 +0000)
hostfs is provided by the Linux UML subsystem.
smackfs is provided by the Linux Smack security module.

* src/stat.c (human_fstype): Add new file system ID definitions.
* NEWS: Mention the improvement, and adjust for the fact that
SNFS is a remote file system.

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index 2fe8d4353090c85c827859ee06068d360c2b1fd2..0c52e970b8d6fc70375760121be45be0a9f09e75 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -122,10 +122,10 @@ GNU coreutils NEWS                                    -*- outline -*-
   sha1sum for example has improved throughput by 40% on an i3-2310M.
   This also affects sha1sum, sha224sum, sha256sum, sha384sum and sha512sum.
 
-  stat and tail work better with EFIVARFS, EXOFS, F2FS, SNFS and UBIFS.
-  stat -f --format=%T now reports the file system type, and tail -f now uses
-  inotify for files on those file systems, rather than the default (for unknown
-  file system types) of issuing a warning and reverting to polling.
+  stat and tail work better with EFIVARFS, EXOFS, F2FS, HOSTFS, SMACKFS, SNFS
+  and UBIFS.  stat -f --format=%T now reports the file system type, and tail -f
+  now uses inotify for files on all those except SNFS, rather than the default
+  (for unknown file system types) of issuing a warning and reverting to polling.
 
   shuf outputs subsets of large inputs much more efficiently.
   Reservoir sampling is used to limit memory usage based on the number of
index ce0aec8d811c56a8f28210ec1524c4dd7c5760ff..ba491f46cd46bfa83107039f0b08a81e747c96cf 100644 (file)
@@ -317,6 +317,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "gpfs";
     case S_MAGIC_HFS: /* 0x4244 local */
       return "hfs";
+    case S_MAGIC_HOSTFS: /* 0xC0FFEE local */
+      return "hostfs";
     case S_MAGIC_HPFS: /* 0xF995E849 local */
       return "hpfs";
     case S_MAGIC_HUGETLBFS: /* 0x958458F6 local */
@@ -396,6 +398,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "securityfs";
     case S_MAGIC_SELINUX: /* 0xF97CFF8C local */
       return "selinux";
+    case S_MAGIC_SMACK: /* 0x43415D53 local */
+      return "smackfs";
     case S_MAGIC_SMB: /* 0x517B remote */
       return "smb";
     case S_MAGIC_SNFS: /* 0xBEEFDEAD remote */