public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: misc-test: use raid1 for data to enable mount with -o degraded
@ 2017-10-03  6:47 Misono, Tomohiro
  2017-10-03 16:35 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Misono, Tomohiro @ 2017-10-03  6:47 UTC (permalink / raw)
  To: linux-btrfs

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 <misono.tomohiro@jp.fujitsu.com>
---
 tests/misc-tests/011-delete-missing-device/test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/misc-tests/011-delete-missing-device/test.sh b/tests/misc-tests/011-delete-missing-device/test.sh
index e817d90..8a1b14b 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
 
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs-progs: misc-test: use raid1 for data to enable mount with -o degraded
  2017-10-03  6:47 [PATCH] btrfs-progs: misc-test: use raid1 for data to enable mount with -o degraded Misono, Tomohiro
@ 2017-10-03 16:35 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2017-10-03 16:35 UTC (permalink / raw)
  To: Misono, Tomohiro; +Cc: linux-btrfs

On Tue, Oct 03, 2017 at 03:47:26PM +0900, Misono, Tomohiro wrote:
> 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 <misono.tomohiro@jp.fujitsu.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-03 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-03  6:47 [PATCH] btrfs-progs: misc-test: use raid1 for data to enable mount with -o degraded Misono, Tomohiro
2017-10-03 16:35 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox