stat: recognize "sockfs" file system type, ...
authorJim Meyering <meyering@redhat.com>
Sun, 13 Dec 2009 10:00:41 +0000 (11:00 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 13 Dec 2009 10:00:41 +0000 (11:00 +0100)
... now that its magic number appears in <linux/magic.h>.
* src/stat.c (human_fstype) [S_MAGIC_SOCKFS]: Add case.

src/stat.c

index 35f5d66..2d4a956 100644 (file)
@@ -327,6 +327,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "selinux";
     case S_MAGIC_SMB: /* 0x517B */
       return "smb";
+    case S_MAGIC_SOCKFS: /* 0x534F434B */
+      return "sockfs";
     case S_MAGIC_SQUASHFS: /* 0x73717368 */
       return "squashfs";
     case S_MAGIC_SYSFS: /* 0x62656572 */