]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat,tail: recognize new FS types: bdevfs, inodefs, qnx6
authorJim Meyering <meyering@redhat.com>
Thu, 10 May 2012 13:46:08 +0000 (15:46 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 10 May 2012 14:00:34 +0000 (16:00 +0200)
* src/stat.c (human_fstype) [__linux__]: Add 'case's for these local
file system types: bdevfs (0x62646576), inodefs (0x42494E4D),
qnx6 (0x68191122).
Now that the kernel has a name for S_MAGIC_BINFMTFS, use
theirs in place of our S_MAGIC_BINFMT_MISC.
* NEWS (New features): Mention it.

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index e56f8fae387b67843a8cf0d1e7b5b710b07a0328..f2f133bb6620115a68143720ed6bc5893bbfbf0f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -32,6 +32,8 @@ GNU coreutils NEWS                                    -*- outline -*-
 
   fmt now accepts the --goal=WIDTH (-g) option.
 
+  stat -f recognizes new file system types: bdevfs, inodefs, qnx6
+
 ** Changes in behavior
 
   cp,mv,install,cat,split: now read and write a minimum of 64KiB at a time.
index d001cdaa21222011cf48453f9ccb44ac1b583f8f..c6747a6b532e43544f83877d6a2cd6e46dbd108a 100644 (file)
@@ -249,9 +249,11 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "autofs";
     case S_MAGIC_BEFS: /* 0x42465331 local */
       return "befs";
+    case S_MAGIC_BDEVFS: /* 0x62646576 local */
+      return "bdevfs";
     case S_MAGIC_BFS: /* 0x1BADFACE local */
       return "bfs";
-    case S_MAGIC_BINFMT_MISC: /* 0x42494E4D local */
+    case S_MAGIC_BINFMTFS: /* 0x42494E4D local */
       return "binfmt_misc";
     case S_MAGIC_BTRFS: /* 0x9123683E local */
       return "btrfs";
@@ -303,6 +305,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "hpfs";
     case S_MAGIC_HUGETLBFS: /* 0x958458F6 local */
       return "hugetlbfs";
+    case S_MAGIC_MTD_INODE_FS: /* 0x11307854 local */
+      return "inodefs";
     case S_MAGIC_INOTIFYFS: /* 0x2BAD1DEA local */
       return "inotifyfs";
     case S_MAGIC_ISOFS: /* 0x9660 local */
@@ -360,6 +364,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "pstorefs";
     case S_MAGIC_QNX4: /* 0x002F local */
       return "qnx4";
+    case S_MAGIC_QNX6: /* 0x68191122 local */
+      return "qnx6";
     case S_MAGIC_RAMFS: /* 0x858458F6 local */
       return "ramfs";
     case S_MAGIC_REISERFS: /* 0x52654973 local */