summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-12-21 18:43:02 +0000
committerPádraig Brady <P@draigBrady.com>2009-12-22 11:17:01 +0000
commit4b449caf2dad59fb05d4089f810036872f4b232f (patch)
tree8620c00e19a4aaf2fb1e83daa9f0bf74b18d3f3d /src
parentd98b1b35a6dad1f2964e530834cc22931f4f75cc (diff)
downloadcoreutils-4b449caf2dad59fb05d4089f810036872f4b232f.tar.xz
stat: add support for more file system types
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/stat.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/stat.c b/src/stat.c
index 2d4a956a2..2fdaffe03 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -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 */