Re: [PATCH RFC] btrfs: scrub: Don't use inode pages for device replace

2018-05-31 Thread Jeff Mahoney
On 5/31/18 4:35 AM, Qu Wenruo wrote: > [BUG] > Btrfs can easily create compressed extent without checksum (even > though it shouldn't), and if we then try to replace device containing > such extent, the result device will contain all the uncompressed data > instead of the compressed one. > > Leadi

[PATCH RFC] btrfs: scrub: Don't use inode pages for device replace

2018-05-31 Thread Qu Wenruo
[BUG] Btrfs can easily create compressed extent without checksum (even though it shouldn't), and if we then try to replace device containing such extent, the result device will contain all the uncompressed data instead of the compressed one. Leading to data corruption. [Cause] When handling compr