stat: recognize GPFS as a file system type
authorJim Meyering <meyering@redhat.com>
Tue, 5 Jul 2011 20:49:56 +0000 (22:49 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 7 Jul 2011 11:58:22 +0000 (13:58 +0200)
* src/stat.c (human_fstype) [S_MAGIC_GPFS]: Add a case,
to handle GPFS_SUPER_MAGIC/0x47504653.  Prompted by this discussion:
http://thread.gmane.org/gmane.comp.sysutils.autoconf.general/14007
* NEWS (Improvements): Mention it.

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index d58df26..f7e7823 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -37,6 +37,8 @@ GNU coreutils NEWS                                    -*- outline -*-
   cp and ls now support HP-UX 11.11's ACLs, thanks to improved support
   in gnulib.
 
+  stat -f now also recognizes the GPFS file system type.
+
 ** Build-related
 
   Changes inherited from gnulib address a build failure on HP-UX 11.11
index 75e0e39..0ad465e 100644 (file)
@@ -289,6 +289,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "futexfs";
     case S_MAGIC_GFS: /* 0x1161970 */
       return "gfs/gfs2";
+    case S_MAGIC_GPFS: /* 0x47504653 */
+      return "gpfs";
     case S_MAGIC_HFS: /* 0x4244 */
       return "hfs";
     case S_MAGIC_HPFS: /* 0xF995E849 */