summaryrefslogtreecommitdiff
path: root/volumes.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-08-25 10:44:57 +0800
committerDavid Sterba <dsterba@suse.com>2015-08-31 19:25:13 +0200
commit004eabb1ad09171389b7e9260342758e7b331a07 (patch)
tree3c6ffdc6392ecb98ccbc1d2e76d85e1a9ab29f7e /volumes.h
parent3eb8836424fd363fd7b4dda5cc602ed0040c3f8a (diff)
btrfs-progs: find-root: fix a bug that will cause wrong result
[BUG] btrfs-find-root may not output desire result, as due to search_extent_cache() may return a result that doesn't cover the desired range, generation cache can be screwed up if higher generation tree root is found before lower generation tree root. For example: ======= ./btrfs-find-root /dev/sda6 -a Superblock thinks the generation is 8 Superblock thinks the level is 0 adding bytenr: 4194304, gen: 8 <<< Debug output adding bytenr: 24715264, gen: 7 <<< gen is 7 at read_tree_block time Well block 4194304(gen: 8 level: 0) seems good, and it matches superblock Well block 24715264(gen: 8 level: 0) seems good, and it matches superblock <<< But its gen is wrong at result output time ======= [Fix] Add a new check to make sure the search_extent_cache() is returning the desired result. Reported-by: Marc Merlin <marc@merlins.org> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'volumes.h')
0 files changed, 0 insertions, 0 deletions