linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix raid6 reconstruction bug
@ 2017-11-02  0:54 Liu Bo
  2017-11-02  0:54 ` [PATCH 1/4] Btrfs: introduce device flags Liu Bo
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Liu Bo @ 2017-11-02  0:54 UTC (permalink / raw)
  To: linux-btrfs

This is an attempt to fix a raid6 bug, that is, if two disks got
hotplugged at run time, reconstruction process is not able to rebuild
correct data to use even if raid6 can theoretically tolerate two disk
failure.

Patch 1 is a preparation patch, which introduces the necessary flags
and flag handling.

More details about the above bug can be found in Patch 2.

Patch 3 applies flags to raid1/10 profile.

Patch 4 fixes btrfs to show flags for each device correctly.

A test case[1] for fstests has been sent out.

[1]: fstests: btrfs: add test case for raid6 reconstruction bug
https://patchwork.kernel.org/patch/10037769/

Liu Bo (4):
  Btrfs: introduce device flags
  Btrfs: fix data corruption in raid6
  Btrfs: make raid1 and raid10 be aware of device flag In_sync
  Btrfs: change how we set In_sync

 fs/btrfs/disk-io.c | 21 ++++++++++++++++-
 fs/btrfs/raid56.c  |  3 ++-
 fs/btrfs/volumes.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++--------
 fs/btrfs/volumes.h |  8 +++++++
 4 files changed, 88 insertions(+), 12 deletions(-)

-- 
2.9.4


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

end of thread, other threads:[~2017-11-13 17:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-02  0:54 [PATCH 0/4] Fix raid6 reconstruction bug Liu Bo
2017-11-02  0:54 ` [PATCH 1/4] Btrfs: introduce device flags Liu Bo
2017-11-06 16:40   ` David Sterba
2017-11-08 19:46     ` Liu Bo
2017-11-13 17:13       ` David Sterba
2017-11-07  9:30   ` Anand Jain
2017-11-02  0:54 ` [PATCH 2/4] Btrfs: fix data corruption in raid6 Liu Bo
2017-11-07  8:32   ` Anand Jain
2017-11-08 19:53     ` Liu Bo
2017-11-09  9:29       ` Anand Jain
2017-11-09  9:59         ` Qu Wenruo
2017-11-10  0:12         ` Liu Bo
2017-11-10  0:54           ` Qu Wenruo
2017-11-10 10:15             ` Qu Wenruo
2017-11-02  0:54 ` [PATCH 3/4] Btrfs: make raid1 and raid10 be aware of device flag In_sync Liu Bo
2017-11-02  0:54 ` [PATCH 4/4] Btrfs: change how we set In_sync Liu Bo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).