Skip to content

Lowmem mode btrfs fixes exposed by complex tree

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 of 4 patches 2 repliesIn review

3 of 4 patches are in this archive. The cover letter announces 4.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs-progs: backref: Allow backref walk to handle direct parent refbackref.c+3 -00 replies
2/4btrfs-progs: lowmem check: Fix function call stack overflow caused by wrong tree reloc tree detectioncmds-check.c+5 -60 replies
3/4btrfs-progs: lowmem check: Fix false alerts for image with shared block ref only backrefcmds-check.c+24 -00 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] Lowmem mode btrfs fixes exposed by complex tree

The patchset (along with "backref lost" bug fixes and test cases) can be fetched from github:
https://github.com/adam900710/btrfs-progs/tree/lowmem_fix

Despite the backref lost false alerts reported by Chris Murphy, there are still some other bugs to be fixed.

One is also exposed by Chris Murphy, where btrfs-progs backref can't handle shared block ref for metadata. Fix by 1st patch.

And 2 more bugs exposed by the test image which is originally designed for the bug fixed by 1st patch.

Last but not the least, here comes the test image. Which is an image with a lot of metadata and under a relocation. It is definitely a bomb for old lowmem check.

Qu Wenruo (4):
btrfs-progs: backref: Allow backref walk to handle direct parent ref
btrfs-progs: lowmem check: Fix function call stack overflow caused by
wrong tree reloc tree detection
btrfs-progs: lowmem check: Fix false alerts for image with shared
block ref only backref
btrfs-progs: fsck-test: Add new image with shared block ref only
metadata backref

 backref.c                                          |   3 ++
 cmds-check.c                                       |  35 +++++++++++++++++----
 .../020-extent-ref-cases/shared_block_ref_only.img | Bin 0 -> 304128 bytes
 3 files changed, 32 insertions(+), 6 deletions(-)
 create mode 100644 tests/fsck-tests/020-extent-ref-cases/shared_block_ref_only.img
Signature · 1 line
2.15.0