From: Xiaoli Feng Date: Fri, 15 Nov 2019 14:42:48 +0000 (+0800) Subject: ext4/031: use _try_scratch_mount instead of _scratch_mount X-Git-Tag: v2022.05.01~948 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=86216d73ef61c7328c4dfe7e3e3b39bb73b32369 ext4/031: use _try_scratch_mount instead of _scratch_mount Here will check the return code of mount option. So update it to use _try_scratch_mount. Signed-off-by: Xiaoli Feng Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/ext4/031 b/tests/ext4/031 index 53770f03..dc58214e 100755 --- a/tests/ext4/031 +++ b/tests/ext4/031 @@ -53,7 +53,7 @@ echo "Need to make some inline data..." > $TESTFILE export MOUNT_OPTIONS="$SAVE_MOUNT_OPTIONS" _scratch_unmount >> $seqres.full 2>&1 -_scratch_mount "-o dax" >> $seqres.full 2>&1 +_try_scratch_mount "-o dax" >> $seqres.full 2>&1 if [[ $? != 0 ]]; then # _require_scratch_dax already verified that we could mount with DAX.