summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2013-03-22 12:15:04 +0000
committerPádraig Brady <P@draigBrady.com>2013-03-24 02:30:20 +0000
commit4c49dc823ff7da589ae58d8d8313d38a75fc8f64 (patch)
tree3f3ac0a24b7d5f6926dc908a1431a9cc6feadcc6 /src
parentbb9197c40663c232422f5e0296d63d4ab6c1dc50 (diff)
downloadcoreutils-4c49dc823ff7da589ae58d8d8313d38a75fc8f64.tar.xz
stat,tail: improve support for efivarfs, exofs, f2fs and ubifs
* src/stat.c (human_fstype): Add new file system ID definitions. * NEWS: Mention the improvement. Fixes http://bugs.gnu.org/14020
Diffstat (limited to 'src')
-rw-r--r--src/stat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/stat.c b/src/stat.c
index a1938a7d4..8ba958a02 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -288,14 +288,20 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "devpts";
case S_MAGIC_ECRYPTFS: /* 0xF15F local */
return "ecryptfs";
+ case S_MAGIC_EFIVARFS: /* 0xDE5E81E4 local */
+ return "efivarfs";
case S_MAGIC_EFS: /* 0x00414A53 local */
return "efs";
+ case S_MAGIC_EXOFS: /* 0x5DF5 local */
+ return "exofs";
case S_MAGIC_EXT: /* 0x137D local */
return "ext";
case S_MAGIC_EXT2: /* 0xEF53 local */
return "ext2/ext3";
case S_MAGIC_EXT2_OLD: /* 0xEF51 local */
return "ext2";
+ case S_MAGIC_F2FS: /* 0xF2F52010 local */
+ return "f2fs";
case S_MAGIC_FAT: /* 0x4006 local */
return "fat";
case S_MAGIC_FHGFS: /* 0x19830326 remote */
@@ -405,6 +411,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "sysv4";
case S_MAGIC_TMPFS: /* 0x01021994 local */
return "tmpfs";
+ case S_MAGIC_UBIFS: /* 0x24051905 local */
+ return "ubifs";
case S_MAGIC_UDF: /* 0x15013346 local */
return "udf";
case S_MAGIC_UFS: /* 0x00011954 local */