summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-04-25 14:40:45 +0200
committerJim Meyering <meyering@redhat.com>2011-04-25 14:40:45 +0200
commitbd6cea345ceb25e10b4ecd7245d8c5725e126e97 (patch)
tree1362999a4db2b0ab8dfdcc5ccc0ba64ca08f01a4
parent61de57cd2369914542d44d32b4a2e001f638ada8 (diff)
downloadcoreutils-bd6cea345ceb25e10b4ecd7245d8c5725e126e97.tar.xz
stat: recognize V9FS and ECRYPTFS file systems
* src/stat.c (human_fstype): Add magic numbers for V9FS and ECRYPTFS.
-rw-r--r--src/stat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stat.c b/src/stat.c
index f26dcedd1..4e6e1c355 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -268,6 +268,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "devfs";
case S_MAGIC_DEVPTS: /* 0x1CD1 */
return "devpts";
+ case S_MAGIC_ECRYPTFS: /* 0xF15F */
+ return "ecryptfs";
case S_MAGIC_EFS: /* 0x00414A53 */
return "efs";
case S_MAGIC_EXT: /* 0x137D */
@@ -374,6 +376,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "ufs";
case S_MAGIC_USBDEVFS: /* 0x9FA2 */
return "usbdevfs";
+ case S_MAGIC_V9FS: /* 0x01021997 */
+ return "v9fs";
case S_MAGIC_VXFS: /* 0xA501FCF5 */
return "vxfs";
case S_MAGIC_XENFS: /* 0xABBA1974 */