public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: handle raid56 properly
@ 2022-11-13  6:32 Qu Wenruo
  2022-11-13  6:32 ` [PATCH 1/2] btrfs-progs: properly handle degraded raid56 reads Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Qu Wenruo @ 2022-11-13  6:32 UTC (permalink / raw)
  To: linux-btrfs

There is a bug that "btrfs check" can fail to even open the filesystem.

The root cause is that raid56 read path doesn't even allow any missing
device, which is pretty ironic.

This patchset will fix the raid56 read path, and slightly improve the
raid56 handling (still not reaching the granularity of kernel yet).

And finally add a test case for it.

Qu Wenruo (2):
  btrfs-progs: properly handle degraded raid56 reads
  btrfs-progs: fsck-tests: add test case for degraded raid5

 kernel-lib/bitmap.h                         | 45 +++++++++++++++++
 kernel-shared/extent_io.c                   | 54 ++++++++++++---------
 tests/fsck-tests/060-degraded-check/test.sh | 36 ++++++++++++++
 3 files changed, 113 insertions(+), 22 deletions(-)
 create mode 100644 kernel-lib/bitmap.h
 create mode 100755 tests/fsck-tests/060-degraded-check/test.sh

-- 
2.38.1


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

end of thread, other threads:[~2022-11-14 20:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-13  6:32 [PATCH 0/2] btrfs-progs: handle raid56 properly Qu Wenruo
2022-11-13  6:32 ` [PATCH 1/2] btrfs-progs: properly handle degraded raid56 reads Qu Wenruo
2022-11-13  6:32 ` [PATCH 2/2] btrfs-progs: fsck-tests: add test case for degraded raid5 Qu Wenruo
2022-11-14 20:39 ` [PATCH 0/2] btrfs-progs: handle raid56 properly David Sterba

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