summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2013-04-24 22:59:46 +0100
committerPádraig Brady <P@draigBrady.com>2013-04-28 03:43:40 +0100
commite414ff4c4c3fe029a9702c9909bf4eccbef68c21 (patch)
tree851e0eab9f33f3b69d422dbee0346cfca9579172
parent94f4f658f029f5d0083c6e8fab75d74b73ee5a33 (diff)
downloadcoreutils-e414ff4c4c3fe029a9702c9909bf4eccbef68c21.tar.xz
stat,tail: improve support for snfs
The StorNext distributed file system was previously known as CVFS. * src/stat.c (human_fstype): Add new file system ID definition. * NEWS: Mention the improvement. Fixes http://bugs.gnu.org/14251
-rw-r--r--NEWS2
-rw-r--r--src/stat.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index fc05b8a40..3edb946af 100644
--- a/NEWS
+++ b/NEWS
@@ -32,7 +32,7 @@ GNU coreutils NEWS -*- outline -*-
** Improvements
- stat and tail work better with EFIVARFS, EXOFS, F2FS and UBIFS.
+ 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.
diff --git a/src/stat.c b/src/stat.c
index 8ba958a02..a1d558ce1 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -399,6 +399,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "selinux";
case S_MAGIC_SMB: /* 0x517B remote */
return "smb";
+ case S_MAGIC_SNFS: /* 0xBEEFDEAD remote */
+ return "snfs";
case S_MAGIC_SOCKFS: /* 0x534F434B local */
return "sockfs";
case S_MAGIC_SQUASHFS: /* 0x73717368 local */