Whamcloud - gitweb
LU-976 tests: skip MMP test for non-ldiskfs backfs
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 9 Jan 2012 19:04:54 +0000 (12:04 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 19 Jan 2012 17:29:48 +0000 (12:29 -0500)
Skip the Multi-Mount Protection tests for non-ldiskfs backing
filesystems.  MMP is currently only implemented for ldiskfs,
so until that changes this test cannot pass for any other FSTYPE.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I4dc9936fa6f34b4dc4cc465a6352daae2198788f
Reviewed-on: http://review.whamcloud.com/1934
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/mmp.sh

index cb35a27..074a20c 100755 (executable)
@@ -26,6 +26,8 @@ init_logging
 
 remote_mds_nodsh && skip "remote MDS with nodsh" && exit 0
 remote_ost_nodsh && skip "remote OST with nodsh" && exit 0
 
 remote_mds_nodsh && skip "remote MDS with nodsh" && exit 0
 remote_ost_nodsh && skip "remote OST with nodsh" && exit 0
+[ "$MDSFSTYPE" != "ldiskfs" ] && skip "MDS not running ldiskfs" && exit 0
+[ "$OSTFSTYPE" != "ldiskfs" ] && skip "OST not running ldiskfs" && exit 0
 
 # unmount and cleanup the Lustre filesystem
 MMP_RESTORE_MOUNT=false
 
 # unmount and cleanup the Lustre filesystem
 MMP_RESTORE_MOUNT=false