Re: [PATCH 3/3] Btrfs-progs, fsck: move root items repair after root rebuilding

2014-11-25 Thread Wang Shilong
Oops, sorry for sending this twice, just entered one more *.patch… > > I did send these patches a long while ago, but due to some reasons, > they were not merged, these are important fixes for fsck, without > these patches, extent tree rebuilding did not work with snapshots. > > Also, /tests/fs

[PATCH 3/3] Btrfs-progs, fsck: move root items repair after root rebuilding

2014-11-25 Thread Wang Shilong
If some critical roots are corrupt, reapr_root_items() will fail, this is detected by fsck_tests.sh's extent rebuilding tests. Signed-off-by: Wang Shilong --- cmds-check.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/cmds-check.c b/cmds-c

[PATCH 3/3] Btrfs-progs, fsck: move root items repair after root rebuilding

2014-11-25 Thread Wang Shilong
If some critical roots are corrupt, reapr_root_items() will fail, this is detected by fsck_tests.sh's extent rebuilding tests. Signed-off-by: Wang Shilong --- cmds-check.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/cmds-check.c b/cmds-c