]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add file system type names and magic numbers from "man 2 statfs".
authorJim Meyering <jim@meyering.net>
Mon, 27 Aug 2007 22:14:20 +0000 (00:14 +0200)
committerJim Meyering <jim@meyering.net>
Mon, 27 Aug 2007 22:14:20 +0000 (00:14 +0200)
* src/stat.c (human_fstype): Also handle BEFS, BFS, BINFMT_MISC,
FUSECTL, HUGETLBFS, NFSD and OPENPROM.

ChangeLog
src/stat.c

index 461019a7d5efb207c7ba4feeedbeb6876aa6d938..79c7808c9c2ec3e33c077c0cf6a67757cbbc1982 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-28  Jim Meyering  <jim@meyering.net>
+
+       Add file system type names and magic numbers from "man 2 statfs".
+       * src/stat.c (human_fstype): Also handle BEFS, BFS, BINFMT_MISC,
+       FUSECTL, HUGETLBFS, NFSD and OPENPROM.
+
 2007-08-27  Jim Meyering  <jim@meyering.net>
 
        Add some file system type names and magic numbers from glibc.
index 339c7124236ffc9ca35a5b17e21ece88b4ec0db8..183f794ea2d77d50a99947f580109011e8a03443 100644 (file)
@@ -214,6 +214,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
         diff -u sym_stat sym_libc
       */
 
+      /* Also sync from the list in "man 2 statfs".  */
+
       /* IMPORTANT NOTE: Each of the following `case S_MAGIC_...:'
         statements must be followed by a hexadecimal constant in
         a comment.  The S_MAGIC_... name and constant are automatically
@@ -225,6 +227,12 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "affs";
     case S_MAGIC_AUTOFS: /* 0x187 */
       return "autofs";
+    case S_MAGIC_BEFS: /* 0x42465331 */
+      return "befs";
+    case S_MAGIC_BFS: /* 0x1BADFACE */
+      return "bfs";
+    case S_MAGIC_BINFMT_MISC: /* 0x42494e4d */
+      return "binfmt_misc";
     case S_MAGIC_CODA: /* 0x73757245 */
       return "coda";
     case S_MAGIC_COH: /* 0x012FF7B7 */
@@ -245,8 +253,12 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "ext2";
     case S_MAGIC_FAT: /* 0x4006 */
       return "fat";
+    case S_MAGIC_FUSECTL: /* 0x65735543 */
+      return "fusectl";
     case S_MAGIC_HPFS: /* 0xF995E849 */
       return "hpfs";
+    case S_MAGIC_HUGETLBFS: /* 0x958458f6 */
+      return "hugetlbfs";
     case S_MAGIC_ISOFS: /* 0x9660 */
       return "isofs";
     case S_MAGIC_ISOFS_R_WIN: /* 0x4004 */
@@ -273,8 +285,12 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "novell";
     case S_MAGIC_NFS: /* 0x6969 */
       return "nfs";
+    case S_MAGIC_NFSD: /* 0x6E667364 */
+      return "nfsd";
     case S_MAGIC_NTFS: /* 0x5346544E */
       return "ntfs";
+    case S_MAGIC_OPENPROM: /* 0x9fa1 */
+      return "openprom";
     case S_MAGIC_PROC: /* 0x9FA0 */
       return "proc";
     case S_MAGIC_QNX4: /* 0x002F */