Signed-off-by: Zeng Linggang <[email protected]>
---
 include/tst_fs_type.h | 1 +
 lib/tst_fs_type.c     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/include/tst_fs_type.h b/include/tst_fs_type.h
index 92b7120..44367b0 100644
--- a/include/tst_fs_type.h
+++ b/include/tst_fs_type.h
@@ -32,6 +32,7 @@
 #define TST_RAMFS_MAGIC 0x858458f6
 #define TST_TMPFS_MAGIC 0x01021994
 #define TST_V9FS_MAGIC  0x01021997
+#define TST_XFS_MAGIC  0x58465342
 
 /*
  * Returns filesystem magick for a given path.
diff --git a/lib/tst_fs_type.c b/lib/tst_fs_type.c
index 4805bac..b1a3675 100644
--- a/lib/tst_fs_type.c
+++ b/lib/tst_fs_type.c
@@ -55,6 +55,8 @@ const char *tst_fs_type_name(long f_type)
                return "RAMFS";
        case TST_BTRFS_MAGIC:
                return "BTRFS";
+       case TST_XFS_MAGIC:
+               return "XFS";
        default:
                return "Unknown";
        }
-- 
1.8.4.2




------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to