summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-12-26 16:09:48 +0100
committerJim Meyering <meyering@redhat.com>2011-12-26 16:37:55 +0100
commitb1230020dc5c5acc9f9ab16c3c397c0aecb5977b (patch)
tree65ad09903d18cb83fce697b91aac32a10f5e46f3
parentb2a6fb0ac925831f8b96f54e10633f24b7b33f12 (diff)
downloadcoreutils-b1230020dc5c5acc9f9ab16c3c397c0aecb5977b.tar.xz
stat,tail: recognize new FS type: pipefs
* src/stat.c (human_fstype) [S_MAGIC_PIPEFS]: New case. * NEWS (Bug fixes): Mention this.
-rw-r--r--NEWS2
-rw-r--r--src/stat.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9b96f8049..9a2f31ca1 100644
--- 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]
diff --git a/src/stat.c b/src/stat.c
index cb9a63cd3..d4de6c790 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -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 */