Re: [PATCH 3/3] btrfs: split RAID stripes on deletion

Johannes Thumshirn
2024-06-11T06:39:25Z

On 10.06.24 21:45, Josef Bacik wrote:
> On Mon, Jun 10, 2024 at 10:40:27AM +0200, Johannes Thumshirn wrote:
>> From: JohnnesThumshirn <johannes.thumshirn@wdc.com>
>>
>> The current RAID stripe code assumes, that we will always remove a
>> whole stripe entry.
>>
>> But ff we're only removing a part of a RAID stripe we're hitting the
>> ASSERT()ion checking for this condition.
>>
>> Instead of assuming the complete deletion of a RAID stripe, split the
>> stripe if we need to.
>>
>> Signed-off-by: Johnnes Thumshirn <johannes.thumshirn@wdc.com>
>
> I'd like a selftest for this helper, should be relatively straightforward to do,
> just to test edgecases and such. Thanks,

Sure. Let me see what I can cook up.