]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat,tail: recognize new file system type: aufs
authorJim Meyering <meyering@redhat.com>
Sat, 30 Jun 2012 16:19:53 +0000 (18:19 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 30 Jun 2012 16:20:07 +0000 (18:20 +0200)
* src/stat.c (human_fstype) [__linux__]: Add a 'case' for the new
remote file system type: aufs (0x61756673).
* NEWS (New features): Mention stat -f.
(Bug fixes): Mention it for tail -f.
Reported by Michael Mol in http://bugs.gnu.org/11823

NEWS
THANKS.in
src/stat.c

diff --git a/NEWS b/NEWS
index 8c75a3291909821eebd8e6d5442128b9a92f1385..be98796c4e5e4284a075a3949101ebd41252cdb4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,13 +25,13 @@ GNU coreutils NEWS                                    -*- outline -*-
   in all situations on GNU/Linux, by correctly determining the block size.
   [df bug since coreutils-5.0.91, stat bug since the initial implementation]
 
-  tail -f no longer tries to use inotify on PanFS file systems
+  tail -f no longer tries to use inotify on AUFS or PanFS file systems
   [you might say this was introduced in coreutils-7.5, along with inotify
    support, but even now, its magic number isn't in the usual place.]
 
 ** New features
 
-  stat -f recognizes the new remote file system type, panfs.
+  stat -f recognizes the new remote file system types: aufs, panfs.
 
 ** Changes in behavior
 
index 2bdeab5e3c11b2d961751d4ad4a259d93815b352..28735948fb2dd680172022c1e960636a02dd6eeb 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
@@ -422,6 +422,7 @@ Michael J. Croghan                  mcroghan@usatoday.com
 Michael J. Daniel                   michael.j.daniel@comcast.net
 Michael McFarland                   sidlon@yahoo.com
 Michael McLagan                     mmclagan@invlogic.com
+Michael Mol                         mikemol@gmail.com
 Michael Piefel                      piefel@informatik.hu-berlin.de
 Michael Steffens                    michael.steffens@s.netic.de
 Michael Stutz                       stutz@dsl.org
index 94b63f61d85873943e80771495c15e4de16540ca..e56f1ffbc478f27cd48a8855d6d973cb24ffae80 100644 (file)
@@ -249,6 +249,11 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "afs";
     case S_MAGIC_ANON_INODE_FS: /* 0x09041934 local */
       return "anon-inode FS";
+    case S_MAGIC_AUFS: /* 0x61756673 remote */
+      /* FIXME: change syntax or add an optional attribute like "inotify:no".
+         The above is labeled as "remote" so that tail always uses polling,
+         but this isn't really a remote file system type.  */
+      return "aufs";
     case S_MAGIC_AUTOFS: /* 0x0187 local */
       return "autofs";
     case S_MAGIC_BEFS: /* 0x42465331 local */