]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(human_fstype): Add case/definition for S_MAGIC_XFS
authorJim Meyering <jim@meyering.net>
Tue, 15 Feb 2005 08:57:59 +0000 (08:57 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 15 Feb 2005 08:57:59 +0000 (08:57 +0000)
so that file systems of type `xfs' are recognized as such.

src/stat.c

index 3d302e7fd98b24dc7804a861513648eb022a5822..82ad454a495071a902f72137ab3583cefa187ca7 100644 (file)
@@ -142,6 +142,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "ext2";
     case S_MAGIC_EXT2: /* 0xEF53 */
       return "ext2/ext3";
+    case S_MAGIC_XFS: /* 0x58465342 */
+      return "xfs";
     case S_MAGIC_HPFS: /* 0xF995E849 */
       return "hpfs";
     case S_MAGIC_ISOFS: /* 0x9660 */