diff options
author | Pádraig Brady <P@draigBrady.com> | 2014-05-22 02:16:14 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-05-22 11:16:07 +0100 |
commit | 695a0b5502a623e5a9a6d149500c4898102d2dd8 (patch) | |
tree | a265ebb4feba3eec9dd7853d68cf95d1e20804f5 /src | |
parent | 1ab31d1ec1635ae0764604a8bf61e11851a63a45 (diff) | |
download | coreutils-695a0b5502a623e5a9a6d149500c4898102d2dd8.tar.xz |
maint: enforce consistent width and case of file system constants
* src/stat.c (human_fstype): Adjust a couple of existing constants
to be a consistent width and capitalization so that the
src/fs-magic-compare target works without reporting false positives.
* cfg.mk (sc_fs-magic-compare): A new syntax check to enforce this.
Improved by: Jim Meyering
Diffstat (limited to 'src')
-rw-r--r-- | src/stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stat.c b/src/stat.c index 7d43eb555..148ff49cc 100644 --- a/src/stat.c +++ b/src/stat.c @@ -316,7 +316,7 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return "fusectl"; case S_MAGIC_FUTEXFS: /* 0x0BAD1DEA local */ return "futexfs"; - case S_MAGIC_GFS: /* 0x1161970 remote */ + case S_MAGIC_GFS: /* 0x01161970 remote */ return "gfs/gfs2"; case S_MAGIC_GPFS: /* 0x47504653 remote */ return "gpfs"; @@ -326,7 +326,7 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return "hfs+"; case S_MAGIC_HFS_X: /* 0x4858 local */ return "hfsx"; - case S_MAGIC_HOSTFS: /* 0xC0FFEE local */ + case S_MAGIC_HOSTFS: /* 0x00C0FFEE local */ return "hostfs"; case S_MAGIC_HPFS: /* 0xF995E849 local */ return "hpfs"; @@ -378,7 +378,7 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return "ntfs"; case S_MAGIC_OPENPROM: /* 0x9FA1 local */ return "openprom"; - case S_MAGIC_OCFS2: /* 0x7461636f remote */ + case S_MAGIC_OCFS2: /* 0x7461636F remote */ return "ocfs2"; case S_MAGIC_PANFS: /* 0xAAD7AAEA remote */ return "panfs"; |