btrfs-progs: dump-tree: update help and docs regarding DFS/BFS

The default traversal has been switched to BFS due, update the
documentation accordingly. Also fix the help text of the command that
ommitted to mention the options.

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2019-08-26 19:26:26 +02:00
parent c003709191
commit f55bdde2f9
2 changed files with 8 additions and 2 deletions

View File

@ -90,10 +90,14 @@ print info of the specified block only, can be specified multiple times
--follow::::
use with '-b', print all children tree blocks of '<block_num>'
--dfs::::
use depth-first search to print trees. (default) the nodes and leaves are
(default up to 5.2)
+
use depth-first search to print trees, the nodes and leaves are
intermixed in the output
--bfs::::
use breadth-first search to print trees. the nodes are printed before all
(default since 5.3)
+
use breadth-first search to print trees, the nodes are printed before all
leaves
--noscan::::
do not automatically scan the system for other devices from the same

View File

@ -204,6 +204,8 @@ static const char * const cmd_inspect_dump_tree_usage[] = {
"-t|--tree <tree_id> print only tree with the given id (string or number)",
"--follow use with -b, to show all children tree blocks of <block_num>",
"--noscan do not scan the devices from the filesystem, use only the listed ones",
"--bfs breadth-first traversal of the trees, print nodes, then leaves (default)",
"--dfs depth-first traversal of the trees",
NULL
};