[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] add lustre filesystem type
From: |
Jim Meyering |
Subject: |
Re: [PATCH] add lustre filesystem type |
Date: |
Mon, 06 Oct 2008 22:36:21 +0200 |
Andreas Dilger <address@hidden> wrote:
> This patch adds "stat -f" detection for the "lustre" filesystem type.
Thank you.
This is the patch I expect to push tomorrow:
>From a36f4cb451e96278127922a68513a8da8fe6d13f Mon Sep 17 00:00:00 2001
From: Andreas Dilger <address@hidden>
Date: Mon, 6 Oct 2008 10:17:19 -0600
Subject: [PATCH] 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.
---
NEWS | 4 ++++
src/stat.c | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/NEWS b/NEWS
index 5ef9804..ab7d5bd 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 1b444f7..f5bf8cd 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 */
--
1.6.0.2.307.gc427