Re: [PATCH] btrfs-progs: Use more loose open ctree flags for dump-tree and restore

2018-04-09 Thread Qu Wenruo
On 2018年04月09日 23:05, David Sterba wrote: > On Mon, Apr 09, 2018 at 10:29:34PM +0800, Qu Wenruo wrote: --- a/cmds-inspect-dump-tree.c +++ b/cmds-inspect-dump-tree.c @@ -303,7 +303,9 @@ int cmd_inspect_dump_tree(int argc, char **argv) int uuid_tree_only = 0; int

Re: [PATCH] btrfs-progs: Use more loose open ctree flags for dump-tree and restore

2018-04-09 Thread David Sterba
On Mon, Apr 09, 2018 at 10:29:34PM +0800, Qu Wenruo wrote: > >> --- a/cmds-inspect-dump-tree.c > >> +++ b/cmds-inspect-dump-tree.c > >> @@ -303,7 +303,9 @@ int cmd_inspect_dump_tree(int argc, char **argv) > >>int uuid_tree_only = 0; > >>int roots_only = 0; > >>int root_backups = 0; >

Re: [PATCH] btrfs-progs: Use more loose open ctree flags for dump-tree and restore

2018-04-09 Thread Qu Wenruo
On 2018年04月09日 22:12, David Sterba wrote: > On Fri, Apr 06, 2018 at 02:39:19PM +0800, Qu Wenruo wrote: >> Corrupted extent tree (either the root node or leaf) can normally block >> us from open the fs. >> As normally open_ctree() has the following call chain: >> __open_ctree_fd() >> |-

Re: [PATCH] btrfs-progs: Use more loose open ctree flags for dump-tree and restore

2018-04-09 Thread David Sterba
On Fri, Apr 06, 2018 at 02:39:19PM +0800, Qu Wenruo wrote: > Corrupted extent tree (either the root node or leaf) can normally block > us from open the fs. > As normally open_ctree() has the following call chain: > __open_ctree_fd() > |- btrfs_setup_all_roots() >|- btrfs_read_block_groups() >