summaryrefslogtreecommitdiff
path: root/src/stat.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2013-12-13 14:05:53 +0000
committerPádraig Brady <P@draigBrady.com>2013-12-13 14:05:53 +0000
commitee7512cf007dbbfa10b44d7dd8aceb9d0033094b (patch)
treef3b64b82fd78ac1256f6dd7d43dda8a7626c470a /src/stat.c
parent41e9a094ad1fd49c8887da24f0fabf222272bfbe (diff)
downloadcoreutils-ee7512cf007dbbfa10b44d7dd8aceb9d0033094b.tar.xz
stat,tail: improve support for hostfs and smackfs
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.
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stat.c b/src/stat.c
index ce0aec8d8..ba491f46c 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -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 */