Re: [RFC ONLY 3/8] btrfs: read raid-stripe-tree from disk

Johannes Thumshirn
2022-05-20T08:27:44Z

On 20/05/2022 00:56, Qu Wenruo wrote:
>
>
> On 2022/5/19 21:49, Johannes Thumshirn wrote:
>> On 19/05/2022 15:27, Qu Wenruo wrote:
>>>
>>>
>>> Then let us consider the extra chunk type flag, like
>>> BTRFS_BLOCK_GROUP_HAS_STRIPE_TREE, and then expand the combination from
>>> the initial RAID1*|HAS_STRIPE_TREE to other profiles.
>>
>>
>> That would definitively work for me.
>
> Just one thing to mention, does RAID10 also need stripe tree for
> metadata? Or since we're doing depth = 1 IO for metadata anyway, RAID10
> is also safe for metadata without using a stripe tree?
>
> If so, I really believe the metadata has already a super good profile
> set already.

Yep I think so, as no meta-data is written with zone-append.

I just think for meta-data on raid56 we need something.