]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: selftests: test RAID stripe-tree deletion spanning two items
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 13 Jan 2025 19:31:52 +0000 (20:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Jan 2025 14:54:44 +0000 (15:54 +0100)
commit1d395c3926d8996918ca29a67fe194e7088491d9
tree5213e5a7719e5a173b074fe2ede6fef4429f4e38
parenta0afdec2552cf1ae059d58c3ffaa83aae7ddbfe1
btrfs: selftests: test RAID stripe-tree deletion spanning two items

Add a selftest for RAID stripe-tree deletion with a delete range spanning
two items, so that we're punching a hole into two adjacent RAID stripe
extents truncating the first and "moving" the second to the right.

The following diagram illustrates the operation:

 |--- RAID Stripe Extent ---||--- RAID Stripe Extent ---|
 |-----  keep  -----|--- drop ---|-----  keep  ----|

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/raid-stripe-tree-tests.c