btrfs-progs: look up the containing tree root id
authorDavid Sterba <dsterba@suse.cz>
Wed, 18 Sep 2013 16:19:30 +0000 (18:19 +0200)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:23:11 +0000 (08:23 -0400)
commit7fbcc39c3075b88718bcb3e8e6f3ff599a4e9f86
tree50c7072f9a53f9270b0077206ad38ec5be14a2f4
parent8e937074a4ecc1a70f4a10cfff94e60a916ce82f
btrfs-progs: look up the containing tree root id

Find the tree id of the containing subvolume for a given file or
directory. For subvolume return it's own id.

$ btrfs inspect-internal rootid <path>

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-inspect.c
man/btrfs.8.in
utils.c
utils.h