diff options
author | David Sterba <dsterba@suse.com> | 2016-10-31 10:38:31 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-09 13:47:28 +0100 |
commit | 1c85c3de5aab997ff66ea95cb0f2c9f79726ec40 (patch) | |
tree | 48089000f1128679f762ab9f5e9b9a5f91835718 /cmds-receive.c | |
parent | 49cb98e5d6989055860eee06879c10896489062f (diff) | |
download | btrfs-progs-1c85c3de5aab997ff66ea95cb0f2c9f79726ec40.tar.gz btrfs-progs-1c85c3de5aab997ff66ea95cb0f2c9f79726ec40.tar.bz2 btrfs-progs-1c85c3de5aab997ff66ea95cb0f2c9f79726ec40.zip |
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-receive.c')
-rw-r--r-- | cmds-receive.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmds-receive.c b/cmds-receive.c index d0525bfb..62a79850 100644 --- a/cmds-receive.c +++ b/cmds-receive.c @@ -1106,11 +1106,8 @@ static int do_receive(struct btrfs_receive *r, const char *tomnt, * subvols we want to receive in. */ ret = btrfs_list_get_path_rootid(r->mnt_fd, &subvol_id); - if (ret) { - error("cannot resolve our subvolid: %d", - ret); + if (ret) goto out; - } root_subvol_path[0] = 0; ret = btrfs_subvolid_resolve(r->mnt_fd, root_subvol_path, |