Re: [PATCH 2/5] btrfs-progs: image: Fix block group item flags when restoring multi-device image to single device

2018-11-26 Thread Qu Wenruo
On 2018/11/27 下午3:15, Nikolay Borisov wrote: > > > On 27.11.18 г. 4:33 ч., Qu Wenruo wrote: >> Since btrfs-image is just restoring tree blocks without really check if >> that tree block contents makes sense, for multi-device image, block >> group items will keep that incorrect block group

Re: [PATCH 2/5] btrfs-progs: image: Fix block group item flags when restoring multi-device image to single device

2018-11-26 Thread Nikolay Borisov
On 27.11.18 г. 4:33 ч., Qu Wenruo wrote: > Since btrfs-image is just restoring tree blocks without really check if > that tree block contents makes sense, for multi-device image, block > group items will keep that incorrect block group flags. > > For example, for a metadata RAID1 data RAID0

[PATCH 2/5] btrfs-progs: image: Fix block group item flags when restoring multi-device image to single device

2018-11-26 Thread Qu Wenruo
Since btrfs-image is just restoring tree blocks without really check if that tree block contents makes sense, for multi-device image, block group items will keep that incorrect block group flags. For example, for a metadata RAID1 data RAID0 btrfs recovered to a single disk, its chunk tree will