From fa5b3a7fe246ff5e3291a9fbd200eaf35104254b Mon Sep 17 00:00:00 2001 From: "Misono, Tomohiro" Date: Tue, 3 Oct 2017 15:47:26 +0900 Subject: btrfs-progs: misc-test: use raid1 for data to enable mount with -o degraded kernel 4.14 introduces new function for checking if all chunks is ok for mount with -o degraded option. commit 21634a19f646 ("btrfs: Introduce a function to check if all chunks a OK for degraded rw mount") As a result, raid0 profile cannot be mounted with -o degraded on 4.14. This causes failure of the misc-test 011 "delete missing device". Fix this by using raid1 profile for both data and metadata. This also should work for kernel before 4.13. Signed-off-by: Tomohiro Misono Signed-off-by: David Sterba --- tests/misc-tests/011-delete-missing-device/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/misc-tests') diff --git a/tests/misc-tests/011-delete-missing-device/test.sh b/tests/misc-tests/011-delete-missing-device/test.sh index e817d907..8a1b14b1 100755 --- a/tests/misc-tests/011-delete-missing-device/test.sh +++ b/tests/misc-tests/011-delete-missing-device/test.sh @@ -50,7 +50,7 @@ dev1=${loopdevs[1]} devtodel=${loopdevs[3]} TEST_DEV=$dev1 -test_do_mkfs +test_do_mkfs -m raid1 -d raid1 test_wipefs test_delete_missing -- cgit v1.2.3