summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Dilger <adilger@sun.com>2008-10-06 10:17:19 -0600
committerJim Meyering <meyering@redhat.com>2008-10-06 22:35:57 +0200
commita36f4cb451e96278127922a68513a8da8fe6d13f (patch)
tree9763f8c1c5788d83092fbb1fdbabf2ed453a4edd
parented0a1c9f943ed112c7ef24b8ab85d530ce5ca324 (diff)
downloadcoreutils-a36f4cb451e96278127922a68513a8da8fe6d13f.tar.xz
stat: add lustre filesystem type
* src/stat.c (human_fstype) [S_MAGIC_LUSTRE]: Add case. Make "stat -f" recognize the "Lustre" filesystem type. <http://en.wikipedia.org/wiki/Lustre_(file_system)> * NEWS: Mention this feature.
-rw-r--r--NEWS4
-rw-r--r--src/stat.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5ef98041c..ab7d5bdbe 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@ GNU coreutils NEWS -*- outline -*-
* Noteworthy changes in release ?.? (????-??-??) [?]
+** New features
+
+ stat -f recognizes the Lustre file system type
+
* Noteworthy changes in release 7.0 (2008-10-05) [beta]
diff --git a/src/stat.c b/src/stat.c
index 1b444f7dd..f5bf8cdee 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -265,6 +265,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "jffs";
case S_MAGIC_JFS: /* 0x3153464A */
return "jfs";
+ case S_MAGIC_LUSTRE: /* 0x0BD00BD0 */
+ return "lustre";
case S_MAGIC_MINIX: /* 0x137F */
return "minix";
case S_MAGIC_MINIX_30: /* 0x138F */