mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2025-01-25 13:13:21 +08:00
btrfs-progs: make error message from add_clone_source more generic
Do not hardcode the error message. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
a260446077
commit
7b80b76386
@ -474,7 +474,7 @@ int cmd_send(int argc, char **argv)
|
||||
|
||||
ret = add_clone_source(&send, root_id);
|
||||
if (ret < 0) {
|
||||
error("not enough memory");
|
||||
error("cannot add clone source: %s", strerror(-ret));
|
||||
goto out;
|
||||
}
|
||||
subvol_uuid_search_finit(&send.sus);
|
||||
@ -579,7 +579,7 @@ int cmd_send(int argc, char **argv)
|
||||
|
||||
ret = add_clone_source(&send, parent_root_id);
|
||||
if (ret < 0) {
|
||||
error("not enough memory");
|
||||
error("cannot add clone source: %s", strerror(-ret));
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
@ -677,7 +677,7 @@ int cmd_send(int argc, char **argv)
|
||||
/* done with this subvol, so add it to the clone sources */
|
||||
ret = add_clone_source(&send, root_id);
|
||||
if (ret < 0) {
|
||||
error("not enough memory");
|
||||
error("cannot add clone source: %s", strerror(-ret));
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user