btrfs-progs: map-logical: remove the extent check
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | btrfs-progs: map-logical: use sectorsize as default sizebtrfs-map-logical.c | +1 | 0 replies | |
| 2/4 | btrfs-progs: map-logical: reject unaligned logical/bytes pairbtrfs-map-logical.c | +10 | 1 reply | |
| 3/4 | btrfs-progs: map-logical: loosen the required trees to open the filesystembtrfs-map-logical.c | +2 | 1 reply | |
| 4/4 | btrfs-progs: map-logical: remove the extent item checkbtrfs-map-logical.c | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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