diff --git a/Documentation/btrfs-inspect-internal.asciidoc b/Documentation/btrfs-inspect-internal.asciidoc index 81193600..2abf044a 100644 --- a/Documentation/btrfs-inspect-internal.asciidoc +++ b/Documentation/btrfs-inspect-internal.asciidoc @@ -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 '' --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 diff --git a/cmds/inspect-dump-tree.c b/cmds/inspect-dump-tree.c index e50130a4..e5efe247 100644 --- a/cmds/inspect-dump-tree.c +++ b/cmds/inspect-dump-tree.c @@ -204,6 +204,8 @@ static const char * const cmd_inspect_dump_tree_usage[] = { "-t|--tree print only tree with the given id (string or number)", "--follow use with -b, to show all children tree blocks of ", "--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 };