stat: recognize V9FS and ECRYPTFS file systems
authorJim Meyering <meyering@redhat.com>
Mon, 25 Apr 2011 12:40:45 +0000 (14:40 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 25 Apr 2011 12:40:45 +0000 (14:40 +0200)
* src/stat.c (human_fstype): Add magic numbers for V9FS and ECRYPTFS.

src/stat.c

index f26dced..4e6e1c3 100644 (file)
@@ -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 */