]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat: Recognize k-afs, gfs, ocfs2 file system types
authorPádraig Brady <P@draigBrady.com>
Tue, 22 Dec 2009 12:21:45 +0000 (12:21 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 22 Dec 2009 16:55:04 +0000 (16:55 +0000)
* src/stat.c (human_fstype): Add k-afs, gfs/gfs2 and ocfs2.
* NEWS: Update the stat -f entry.

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index c16dacdfc21d2b7adaa31ec43c1fcb6708d099f9..ac5bd074212df09b0889739464abdf51c18b318f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,8 +9,8 @@ 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.
+  stat -f recognizes more file system types: k-afs, fuseblk, gfs/gfs2, ocfs2,
+  and 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
index 2fdaffe0312470826ecae0878dc4f3c0ff7169d3..025d5f449d0849144c7a8a07d3c323b4d9610750 100644 (file)
@@ -268,6 +268,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "fusectl";
     case S_MAGIC_FUTEXFS: /* 0x0BAD1DEA */
       return "futexfs";
+    case S_MAGIC_GFS: /* 0x1161970 */
+      return "gfs/gfs2";
     case S_MAGIC_HFS: /* 0x4244 */
       return "hfs";
     case S_MAGIC_HPFS: /* 0xF995E849 */
@@ -288,6 +290,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "jffs2";
     case S_MAGIC_JFS: /* 0x3153464A */
       return "jfs";
+    case S_MAGIC_KAFS: /* 0x6B414653 */
+      return "k-afs";
     case S_MAGIC_LUSTRE: /* 0x0BD00BD0 */
       return "lustre";
     case S_MAGIC_MINIX: /* 0x137F */
@@ -314,6 +318,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "ntfs";
     case S_MAGIC_OPENPROM: /* 0x9FA1 */
       return "openprom";
+    case S_MAGIC_OCFS2: /* 0x7461636f */
+      return "ocfs2";
     case S_MAGIC_PROC: /* 0x9FA0 */
       return "proc";
     case S_MAGIC_QNX4: /* 0x002F */