summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-10-31 10:38:31 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-09 13:47:28 +0100
commit1c85c3de5aab997ff66ea95cb0f2c9f79726ec40 (patch)
tree48089000f1128679f762ab9f5e9b9a5f91835718 /cmds-subvolume.c
parent49cb98e5d6989055860eee06879c10896489062f (diff)
btrfs-progs: use existing rootid resolving helper in btrfs_list_get_path_rootid
The utils helper is not verbose in case of an error, for now the helper used for subvolume listing will print the error message but not duplicate the ioctl anymore. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index bcfe5ed..3b5d6ea 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -548,10 +548,8 @@ static int cmd_subvol_list(int argc, char **argv)
}
ret = btrfs_list_get_path_rootid(fd, &top_id);
- if (ret) {
- error("can't get rootid for '%s'", subvol);
+ if (ret)
goto out;
- }
if (is_list_all)
btrfs_list_setup_filter(&filter_set,