summaryrefslogtreecommitdiff
path: root/utils.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 /utils.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 'utils.c')
-rw-r--r--utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils.c b/utils.c
index 3e1eb45f..e10d199f 100644
--- a/utils.c
+++ b/utils.c
@@ -4161,10 +4161,8 @@ int get_subvol_info(const char *fullpath, struct root_info *get_ri)
goto out;
ret = btrfs_list_get_path_rootid(fd, &sv_id);
- if (ret) {
- error("can't get rootid for '%s'", fullpath);
+ if (ret)
goto out;
- }
mntfd = btrfs_open_dir(mnt, &dirstream2, 1);
if (mntfd < 0)