Thanks for pointing that out Ricardo. I've updated the patch with your
suggestion.

Omar,
Could you please use this patch for testing?



(See attached file: ltp_over_nfs_new.patch)

                                                                           
             Ricardo Salveti                                               
             de Araujo                                                     
             <[EMAIL PROTECTED]                                          To 
             l.com>                    [email protected]      
                                                                        cc 
             03/26/2008 11:11          Sridhar Vinay/India/[EMAIL PROTECTED]    
   
             PM                                                    Subject 
                                       Re: [LTP] Patch for LTP failures    
                                       over NFS                            
             Please respond to                                             
             [EMAIL PROTECTED]                                             
                   .com                                                    
                                                                           
                                                                           
                                                                           




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

Attachment: ltp_over_nfs_new.patch
Description: Binary data

-------------------------------------------------------------------------
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