path: root/btrfs-list.h
diff options
authorEric Sandeen <>2013-02-25 16:54:37 -0600
committerDavid Sterba <>2013-02-27 14:39:27 +0100
commitb808cb66aa7e68bfadfc73f8e5191d284413e3d1 (patch)
tree136f0261e5fa4e49eaefb2fb1115a574ce8a461f /btrfs-list.h
parentb26746e462b67e4310cf88289703a74c3a213d14 (diff)
btrfs-progs: btrfs_list_get_path_rootid error handling
btrfs_list_get_path_rootid() tries to return a negative number on error, but it's a u64 function. Callers which test for a return < 0 will never see an error. Change the function to fill in the rootid via a pointer, and then return a simple int as error. Signed-off-by: Eric Sandeen <>
Diffstat (limited to 'btrfs-list.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-list.h b/btrfs-list.h
index 5d874549..2894451d 100644
--- a/btrfs-list.h
+++ b/btrfs-list.h
@@ -156,5 +156,5 @@ int btrfs_list_subvols_print(int fd, struct btrfs_list_filter_set *filter_set,
int btrfs_list_find_updated_files(int fd, u64 root_id, u64 oldest_gen);
int btrfs_list_get_default_subvolume(int fd, u64 *default_id);
char *btrfs_list_path_for_root(int fd, u64 root);
-u64 btrfs_list_get_path_rootid(int fd);
+int btrfs_list_get_path_rootid(int fd, u64 *treeid);
int btrfs_get_subvol(int fd, struct root_info *the_ri);