btrfs-progs: dump-tree: add option to print children nodes of a given block
commit992aa558397e519d2251cdc6c4d3a9e019b240a0
authorQu Wenruo <wqu@suse.com>
Wed, 14 Mar 2018 01:05:38 +0000 (14 09:05 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 20:15:54 +0000 (30 22:15 +0200)
tree5397c56996c94da3a33933d1a29bdfa8479d22d2
parentf37ae8d275c2f988c9fc967f8272648fb0118d3d
btrfs-progs: dump-tree: add option to print children nodes of a given block

When debuging with "btrfs inspect dump-tree", it's not that handy if we
want to iterate all child tree blocks starting from a specified block.

-b can only print a single block, while without -b "btrfs inspect dump-tree"
will need extra tree roots fulfilled to continue, which is not possible
for a damaged filesystem.

Add a new option --follow to iterate a sub-tree starting from block
specified by --block.

Signed-off-by: Qu Wenruo <wqu@suse.com>
[ remove the short option for now ]
Signed-off-by: David Sterba <dsterba@suse.com>
Documentation/btrfs-inspect-internal.asciidoc
cmds-inspect-dump-tree.c