summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2013-06-26 17:17:56 +0200
committerDavid Sterba <dsterba@suse.cz>2013-08-09 14:32:31 +0200
commitad280c1b3a8a88e2113dd1bcb725a36be7da5356 (patch)
tree54a9668e441d4d4aa28ac4723a1c889ad35b7e87 /ctree.h
parent64075c5be95b96f3b986b0bf8f6b8e4d910ef1a0 (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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index 6f210b8a..a7143d9e 100644
--- a/ctree.h
+++ b/ctree.h
@@ -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