projects
/
xfstests-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check: Remount file system if MOUNT_OPTIONS changed
[xfstests-dev.git]
/
check
diff --git
a/check
b/check
index a5a6184e07f28c9f42184b2464ec71440a0bb80d..b3937b35310c7ac928b2f32795f23ff7dc1bb9b6 100755
(executable)
--- a/
check
+++ b/
check
@@
-394,6
+394,7
@@
fi
for section in $HOST_OPTIONS_SECTIONS; do
OLD_FSTYP=$FSTYP
for section in $HOST_OPTIONS_SECTIONS; do
OLD_FSTYP=$FSTYP
+ OLD_MOUNT_OPTIONS=$MOUNT_OPTIONS
get_next_config $section
mkdir -p $RESULT_BASE
get_next_config $section
mkdir -p $RESULT_BASE
@@
-422,6
+423,13
@@
for section in $HOST_OPTIONS_SECTIONS; do
exit 1
fi
_prepare_test_list
exit 1
fi
_prepare_test_list
+ elif [ "$OLD_MOUNT_OPTIONS" != "$MOUNT_OPTIONS" ]; then
+ umount $TEST_DEV 2> /dev/null
+ out=`_mount_or_remount_rw "$MOUNT_OPTIONS" $TEST_DEV $TEST_DIR`
+ if [ $? -ne 1 ]; then
+ echo $out
+ exit 1
+ fi
fi
init_rc
fi
init_rc