generic/60[78]: ensure the initial DAX file flag state before test
[xfstests-dev.git] / tests / generic / 607
index dd6dbd651df56eee5b9a724543befe4e8e238915..db4e7cf12e30b87001d0516fd63f8489c5ba48e1 100755 (executable)
@@ -156,6 +156,10 @@ do_xflag_tests()
        local option=$1
 
        _scratch_mount "$option"
+
+       # Make sure the root dir doesn't have FS_XFLAG_DAX set before we start.
+       $XFS_IO_PROG -c "chattr -x" $SCRATCH_MNT &>> $seqres.full
+
        cd $SCRATCH_MNT
 
        for i in $(seq 1 5); do