diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2013-06-26 17:17:56 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-08-09 14:32:31 +0200 |
commit | ad280c1b3a8a88e2113dd1bcb725a36be7da5356 (patch) | |
tree | 54a9668e441d4d4aa28ac4723a1c889ad35b7e87 /ctree.h | |
parent | 64075c5be95b96f3b986b0bf8f6b8e4d910ef1a0 (diff) |
Btrfs-progs: add UUID tree lookup methods
This commit adds UUID tree lookup methods that make use of the search
ioctl. The code is based on the kernel code.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2338,4 +2338,9 @@ struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans, int btrfs_csum_truncate(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 isize); + +/* uuid-tree.c */ +int btrfs_lookup_uuid_subvol_item(int fd, const u8 *uuid, u64 *subvol_id); +int btrfs_lookup_uuid_received_subvol_item(int fd, const u8 *uuid, + u64 *subvol_id); #endif |