xfs: support realtime/log device setup changes in config sections

Currently changing the devices used by "USE_EXTERNAL" environmental
variable is not supported by the config section parsing. Add the
functionality so that we can use config sections to test external
device configs successfully.

This required tracking down a bug in _check_xfs_filesystem() which
was causing a log device to be passed to a test device without an
external log device. This was caused by an uninitialised variable in
the function. I also added full output file removals to the first
couple of generic tests that were failing, because that's where the
check failure output ends up in this case.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Dave Chinner
2016-02-02 15:54:43 +11:00
committed by Dave Chinner
parent dfe582dd39
commit f8c65ca45d
5 changed files with 52 additions and 19 deletions
+1
View File
@@ -2017,6 +2017,7 @@ _check_xfs_filesystem()
fi
extra_mount_options=""
extra_log_options=""
extra_options=""
device=$1
if [ -f $device ];then