aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>2018-02-20 14:34:32 +0900
committerEryu Guan <eguan@redhat.com>2018-02-20 20:35:03 +0800
commitbf382b0e77307545ce9bfcfd19f17bd65c03cbb0 (patch)
treea83104b064c9b0867b832cfd7764aba71a6800c4
parent5f73d8719d0410685387da56d50a559f5bd6a543 (diff)
downloadxfstests-bf382b0e77307545ce9bfcfd19f17bd65c03cbb0.tar.gz
btrfs/150: add _scratch_dev_pool_get/put to run the test as expected
btrfs/150 uses RAID1 profile and make SCRATCH_DEV fail for test. However, if SCRATCH_DEV_POOL consists more than two devices, SCRATCH_DEV may not be used for RAID1 pair and the tests may not run as expected. Fix this by add _scratch_dev_pool_get/put like other tests (141, 143 etc.) do. Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
-rwxr-xr-xtests/btrfs/1502
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/btrfs/150 b/tests/btrfs/150
index 97041b6ce1..1e4586be18 100755
--- a/tests/btrfs/150
+++ b/tests/btrfs/150
@@ -55,6 +55,7 @@ _supported_os Linux
_require_scratch
_require_fail_make_request
_require_scratch_dev_pool 2
+_scratch_dev_pool_get 2
SYSFS_BDEV=`_sysfs_dev $SCRATCH_DEV`
enable_io_failure()
@@ -100,6 +101,7 @@ while [[ -z $result ]]; do
disable_io_failure
done
+_scratch_dev_pool_put
# success, all done
status=0
exit