diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-11-06 17:15:41 -0600 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-07 16:10:40 -0500 |
commit | 667c121184f374bfd8d18275f6cd53472f991677 (patch) | |
tree | 98774e1ed500a7db6d4c3eeda205a2b5ad948fe5 /cmds-receive.c | |
parent | 83e941a746e71aa54da2b4bb2c22077c51d31082 (diff) |
btrfs-progs: fix error returns in get_df()
get_df returns -ERRNO, or maybe (+)errno, or even 0 in
the case where we inexplicably got 0 total_spaces from
the BTRFS_IOC_SPACE_INFO.
Consistently return a negative error number, and return
-ENOENT rather than 0 for total_spaces == 0, so that the
caller will know that **sargs_ret hasn't been set up.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-receive.c')
0 files changed, 0 insertions, 0 deletions