coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] stat: recognize V9FS and ECRYPTFS file systems


From: Jim Meyering
Subject: [PATCH] stat: recognize V9FS and ECRYPTFS file systems
Date: Mon, 25 Apr 2011 14:43:56 +0200

I ran "make -C src fs-magic-compare" and it showed that there
are two new file system types:

    # define S_MAGIC_ECRYPTFS 0xF15F
    # define S_MAGIC_V9FS 0x01021997

So I've added them with names "v9fs" and "ecryptfs".
If some other name(s) would be appropriate, please let me know.


>From bd6cea345ceb25e10b4ecd7245d8c5725e126e97 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 25 Apr 2011 14:40:45 +0200
Subject: [PATCH] stat: recognize V9FS and ECRYPTFS file systems

* src/stat.c (human_fstype): Add magic numbers for V9FS and ECRYPTFS.
---
 src/stat.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/stat.c b/src/stat.c
index f26dced..4e6e1c3 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -268,6 +268,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "devfs";
     case S_MAGIC_DEVPTS: /* 0x1CD1 */
       return "devpts";
+    case S_MAGIC_ECRYPTFS: /* 0xF15F */
+      return "ecryptfs";
     case S_MAGIC_EFS: /* 0x00414A53 */
       return "efs";
     case S_MAGIC_EXT: /* 0x137D */
@@ -374,6 +376,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "ufs";
     case S_MAGIC_USBDEVFS: /* 0x9FA2 */
       return "usbdevfs";
+    case S_MAGIC_V9FS: /* 0x01021997 */
+      return "v9fs";
     case S_MAGIC_VXFS: /* 0xA501FCF5 */
       return "vxfs";
     case S_MAGIC_XENFS: /* 0xABBA1974 */
--
1.7.5.rc3.316.gd1ff9



reply via email to

[Prev in Thread] Current Thread [Next in Thread]