diff mbox

[v2] dmflakey: don't run for dax mounts

Message ID x49io4e3pfx.fsf@segfault.boston.devel.redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Moyer Dec. 4, 2015, 8:54 p.m. UTC
Hi,

There is no sense running dmflakey tests with the dax mount option,
since dmflakey doesn't support it.  Mark these as _notrun so that it is
clear that this type of testing is not happenning for dax.

Suggested-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/common/dmflakey b/common/dmflakey
index dec85c1..5a45d14 100644
--- a/common/dmflakey
+++ b/common/dmflakey
@@ -21,6 +21,11 @@ 
 FLAKEY_ALLOW_WRITES=0
 FLAKEY_DROP_WRITES=1
 
+echo $MOUNT_OPTIONS | grep -q dax
+if [ $? -eq 0 ]; then
+	_notrun "Cannot run tests with DAX on dmflakey devices"
+fi
+
 _init_flakey()
 {
 	local BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`