dmflakey: don't run for dax mounts
authorJeff Moyer <jmoyer@redhat.com>
Mon, 21 Dec 2015 07:01:47 +0000 (18:01 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Dec 2015 07:01:47 +0000 (18:01 +1100)
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>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/dmflakey

index dec85c172c28f98e8e8903351c9c808f7754b1b2..5a45d1400baf2bfb183026863852d04a1d2284fa 100644 (file)
 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`