stat,tail: recognize new FS type: pipefs
authorJim Meyering <meyering@redhat.com>
Mon, 26 Dec 2011 15:09:48 +0000 (16:09 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 26 Dec 2011 15:37:55 +0000 (16:37 +0100)
* src/stat.c (human_fstype) [S_MAGIC_PIPEFS]: New case.
* NEWS (Bug fixes): Mention this.

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index 9b96f80..9a2f31c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,8 @@ GNU coreutils NEWS                                    -*- outline -*-
   and NcFsd file systems.  This did not affect Unix/Linux-based kernels.
   [bug introduced in coreutils-8.0, when rm began using fts]
 
+  stat -f now recognizes the FhGFS and PipeFS file system types.
+
   tac no longer fails to handle two or more non-seekable inputs
   [bug introduced in coreutils-5.3.0]
 
index cb9a63c..d4de6c7 100644 (file)
@@ -349,6 +349,11 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "openprom";
     case S_MAGIC_OCFS2: /* 0x7461636f remote */
       return "ocfs2";
+    case S_MAGIC_PIPEFS: /* 0x50495045 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 "pipefs";
     case S_MAGIC_PROC: /* 0x9FA0 local */
       return "proc";
     case S_MAGIC_PSTOREFS: /* 0x6165676C local */