Re: [PATCH v3] Btrfs: avoid losing data raid profile when deleting a device

2018-01-05 Thread David Sterba
On Wed, Nov 15, 2017 at 04:28:11PM -0700, Liu Bo wrote: > We've avoided data losing raid profile when doing balance, but it > turns out that deleting a device could also result in the same > problem. > > Say we have 3 disks, and they're created with '-d raid1' profile. > > - We have chunk P (the

[PATCH v3] Btrfs: avoid losing data raid profile when deleting a device

2017-11-15 Thread Liu Bo
We've avoided data losing raid profile when doing balance, but it turns out that deleting a device could also result in the same problem. Say we have 3 disks, and they're created with '-d raid1' profile. - We have chunk P (the only data chunk on the empty btrfs). - Suppose that chunk P's two rai