diff options
author | David Sterba <dsterba@suse.cz> | 2013-09-18 18:19:30 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-10-16 08:23:11 -0400 |
commit | 7fbcc39c3075b88718bcb3e8e6f3ff599a4e9f86 (patch) | |
tree | 50c7072f9a53f9270b0077206ad38ec5be14a2f4 /utils.h | |
parent | 8e937074a4ecc1a70f4a10cfff94e60a916ce82f (diff) |
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>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -81,4 +81,6 @@ int is_vol_small(char *file); int csum_tree_block(struct btrfs_root *root, struct extent_buffer *buf, int verify); int ask_user(char *question); +int lookup_ino_rootid(int fd, u64 *rootid); + #endif |