Skip to content

btrfs-progs: map-logical: remove the extent check

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs-progs: map-logical: use sectorsize as default sizebtrfs-map-logical.c+1 -10 replies
2/4btrfs-progs: map-logical: reject unaligned logical/bytes pairbtrfs-map-logical.c+10 -01 reply
3/4btrfs-progs: map-logical: loosen the required trees to open the filesystembtrfs-map-logical.c+2 -11 reply
4/4btrfs-progs: map-logical: remove the extent item checkbtrfs-map-logical.c+5 -1400 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] btrfs-progs: map-logical: remove the extent check

Commit eb81f8d263ce ("btrfs-progs: map-logical: Rework map-logical logics") introduced a strict extent item check for btrfs-map-logical.

It not only makes it harder to use btrfs-map-logical, but also prevents btrfs-map-logical to handle fs with corrupted extent tree.

This patchset will address the behavior by completely removing the extent item check, and allow btrfs-map-logical to work on fs with corrupted extent tree.

Since we're here, also change the default mapping length to sectorsize, and reject any unaligned logical/bytes pair.

Qu Wenruo (4):
btrfs-progs: map-logical: use sectorsize as default size
btrfs-progs: map-logical: reject unaligned logical/bytes pair
btrfs-progs: map-logical: loosen the required trees to open the
filesystem
btrfs-progs: map-logical: remove the extent item check

 btrfs-map-logical.c | 158 +++++---------------------------------------
 1 file changed, 17 insertions(+), 141 deletions(-)
Signature · 1 line
2.32.0