On Wednesday 26 March 2008 09:37:27 Sridhar Vinay wrote:
>Hi All,
>
>A few of the testcases were reported to fail over NFS as the corresponding
>calls were not supported by the NFS layer. I have created a patch that
>checks if the testcase is running over NFS and displays an appropriate
>message. The patch takes care of splice, utime, rwtest, diotest, nfs stress
>test(nfs01) and fcntl testcases. Please find attached the signed-off patch.

+# Check if the current filesystem is NFS
+
+STR=`stat -f . | grep "Type: nfs"`
+if [ STR != "" ]; then
+        tst_resm TCONF "Cannot run rwtest on an NFS mounted filesystem"
+        exit 0
+fi

Don't think that this will work, it'll always go to the tst_resm section, you 
can change it to:
if [ -n "$STR" ]; then
        tst_resm TCONF "Cannot run rwtest on an NFS mounted filesystem"
        exit 0
fi

Cheers,
-- 
Ricardo Salveti de Araujo

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to