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
+2
View File
@@ -45,6 +45,8 @@ _supported_fs generic
_supported_os IRIX Linux
_require_test
rm -f $seqres.full
echo "Silence is goodness ..."
# ensure target directory exists
+2
View File
@@ -47,6 +47,8 @@ _supported_os Linux
_require_test
_require_xfs_io_command "flink"
rm -f $seqres.full
testfile="${TEST_DIR}/tst-tmpfile-flink"
# test creating a r/w tmpfile, do I/O and link it into the namespace