btrfs-progs: btrfs_list_get_path_rootid error handling
authorEric Sandeen <sandeen@redhat.com>
Mon, 25 Feb 2013 22:54:37 +0000 (16:54 -0600)
committerDavid Sterba <dsterba@suse.cz>
Wed, 27 Feb 2013 13:39:27 +0000 (14:39 +0100)
commitb808cb66aa7e68bfadfc73f8e5191d284413e3d1
tree136f0261e5fa4e49eaefb2fb1115a574ce8a461f
parentb26746e462b67e4310cf88289703a74c3a213d14
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 <sandeen@redhat.com>
btrfs-list.c
btrfs-list.h
cmds-subvolume.c