summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f8e4f53)
When MOUNT_OPTIONS change we should remount TEST_DEV to put the changes
in effect. This will allow us to have different MOUNT_OPTIONS in sections
in configuration file.
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
separate results in the '$RESULT_BASE/$section_name' directory.
separate results in the '$RESULT_BASE/$section_name' directory.
+Different mount options
+-----------------------
+
+Specifying different mount options in difference config sections is allowed.
+When MOUNT_OPTIONS differs in the following section TEST_DEV will be remounted
+with new MOUNT_OPTIONS automatically before running the test.
+
+
Multiple file systems
---------------------
Multiple file systems
---------------------
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
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