]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat: add support for more file system types
authorPádraig Brady <P@draigBrady.com>
Mon, 21 Dec 2009 18:43:02 +0000 (18:43 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 22 Dec 2009 11:17:01 +0000 (11:17 +0000)
* src/stat.c (human_fstype): Add the following FS types:
fuseblk, rpc_pipefs.  Also fix a typo of minux3 to minix3,
and mention the fs-magic-compare make target to help update the list.
* NEWS: Mention the fix.

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index e0287cca55b7f64b073b6f06f8f3869fb8a32a58..c16dacdfc21d2b7adaa31ec43c1fcb6708d099f9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,10 @@ GNU coreutils NEWS                                    -*- outline -*-
   a commmand of the above form would fail for all subdirectories.
   [bug introduced in coreutils-8.0]
 
+  stat -f recognizes more file system types: fuseblk, rpc_pipefs.
+  Also Minix V3 is displayed correctly as minix3, not minux3.
+  [bug introduced in coreutils-8.1]
+
   touch -a once again guarantees that a file's change time is
   adjusted, working around a bug in current Linux kernels.
   [bug introduced in coreutils-8.1]
index 2d4a956a2b7eac00696a22d3db95d4f226674544..2fdaffe0312470826ecae0878dc4f3c0ff7169d3 100644 (file)
@@ -208,7 +208,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
          diff -u sym_stat sym_libc
       */
 
-      /* Also sync from the list in "man 2 statfs".  */
+      /* Also compare with the list in "man 2 statfs" using the
+         fs-magic-compare make target.  */
 
       /* IMPORTANT NOTE: Each of the following `case S_MAGIC_...:'
          statements must be followed by a hexadecimal constant in
@@ -261,6 +262,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "ext2";
     case S_MAGIC_FAT: /* 0x4006 */
       return "fat";
+    case S_MAGIC_FUSEBLK: /* 0x65735546 */
+      return "fuseblk";
     case S_MAGIC_FUSECTL: /* 0x65735543 */
       return "fusectl";
     case S_MAGIC_FUTEXFS: /* 0x0BAD1DEA */
@@ -296,7 +299,7 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
     case S_MAGIC_MINIX_V2_30: /* 0x2478 */
       return "minix v2 (30 char.)";
     case S_MAGIC_MINIX_V3: /* 0x4D5A */
-      return "minux3";
+      return "minix3";
     case S_MAGIC_MSDOS: /* 0x4D44 */
       return "msdos";
     case S_MAGIC_NCP: /* 0x564C */
@@ -321,6 +324,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "reiserfs";
     case S_MAGIC_ROMFS: /* 0x7275 */
       return "romfs";
+    case S_MAGIC_RPC_PIPEFS: /* 0x67596969 */
+      return "rpc_pipefs";
     case S_MAGIC_SECURITYFS: /* 0x73636673 */
       return "securityfs";
     case S_MAGIC_SELINUX: /* 0xF97CFF8C */