btrfs-progs/check
Josef Bacik 42a1aaeec4 btrfs-progs: deal with drop_progress properly in fsck
While testing snapshot deletion with dm-log-writes I saw that I was
failing the fsck sometimes when the fs was actually in the correct
state.  This is because we only skip blocks on the same level of
root_item->drop_level.  If the drop_level < the root level then we could
very well walk into nodes that we wouldn't actually walk into on fs
mount, because the drop_progress is further ahead in the slot of the
root.  Instead only process the slots of the nodes that are above the
drop_progress key.  With this patch in place we no longer improperly
fail to check fs'es that have a drop_progress set with a drop_level <
root level.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-26 17:46:42 +02:00
..
main.c btrfs-progs: deal with drop_progress properly in fsck 2019-07-26 17:46:42 +02:00
mode-common.c btrfs-progs: move utils.[ch] to common/ 2019-07-03 20:49:04 +02:00
mode-common.h btrfs-progs: check/lowmem: Check and repair free space cache inode mode 2019-04-16 09:04:25 +08:00
mode-lowmem.c btrfs-progs: move utils.[ch] to common/ 2019-07-03 20:49:04 +02:00
mode-lowmem.h btrfs-progs: check/lowmem: Check and repair free space cache inode mode 2019-04-16 09:04:25 +08:00
mode-original.h btrfs-progs: move rbtree-utils.[ch] to common/ 2019-07-03 20:49:04 +02:00