]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
add nfs4 support
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Aug 2011 10:20:43 +0000 (12:20 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Aug 2011 10:20:43 +0000 (12:20 +0200)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Jim Rees <rees@umich.edu>
common.rc

index a5378ddfafa9d781260978529104f1e99bf3be9c..2cbcb73a3dda923e71832ef79291410a29e72e79 100644 (file)
--- a/common.rc
+++ b/common.rc
@@ -558,7 +558,13 @@ _fs_type()
        exit 1
     fi
 
-    _df_device $1 | $AWK_PROG '{ print $2 }'
+    #
+    # The Linux kernel shows NFSv4 filesystems in df output as
+    # filesystem type nfs4, although we mounted it as nfs earlier.
+    # Fix the filesystem type up here so that the callers don't
+    # have to bother with this quirk.
+    #
+    _df_device $1 | $AWK_PROG '{ print $2 }' | sed -e 's/nfs4/nfs/'
 }
 
 # return the FS mount options of a mounted device