[Top] [All Lists]

xfstests fails on nfs4 file system

To: xfs@xxxxxxxxxxx
Subject: xfstests fails on nfs4 file system
From: Jim Rees <rees@xxxxxxxxx>
Date: Sat, 30 Jul 2011 11:16:04 -0400
xfstests fails on nfs4 file system:

rhcl1# mount -t nfs -o nfsvers=4,minorversion=1 emc-1:/pnfs2 /mnt/emc-1
rhcl1# cd /home/rees/xfstests
rhcl1# setenv TEST_DEV emc-1:/pnfs2
rhcl1# setenv TEST_DIR /mnt/emc-1/rees/xfstests
rhcl1# ./check -nfs
common.rc: Error: $TEST_DEV (emc-1:/pnfs2) is not a MOUNTED nfs filesystem
/bin/df: `emc-1:/pnfs2': No such file or directory
/bin/df: no file systems processed

Originally nfs4 was a separate file system type, and it still shows up that
way in mtab:
emc-1:/pnfs2/ on /mnt/emc-1 type nfs4 (rw,relatime,vers=4,...

I fixed this by commenting out the type check at the end of common.rc.  I
don't know enough about the innards of xfstests to know what the proper fix
is.  Maybe a substring match, or explicit check for nfs4?

rhcl1# diff -u common.rc common.rc-ok
--- common.rc   2011-07-29 12:11:34.118251109 -0400
+++ common.rc-ok        2011-07-29 12:33:58.384749553 -0400
@@ -1588,12 +1588,6 @@
-    if [ "`_fs_type $TEST_DEV`" != "$FSTYP" ]
-    then
-        echo "common.rc: Error: \$TEST_DEV ($TEST_DEV) is not a MOUNTED $FSTYP 
-        $DF_PROG $TEST_DEV
-        exit 1
-    fi
 # make sure this script returns success

<Prev in Thread] Current Thread [Next in Thread>