Skip to content

Commit

Permalink
libzfs: sendrecv: fix unused, remove argsused
Browse files Browse the repository at this point in the history
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
  • Loading branch information
nabijaczleweli committed Dec 23, 2021
1 parent 3ed9100 commit 4248e56
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/libzfs/libzfs_sendrecv.c
Original file line number Diff line number Diff line change
Expand Up @@ -3102,7 +3102,7 @@ created_before(libzfs_handle_t *hdl, avl_tree_t *avl,
*/
static int
recv_fix_encryption_hierarchy(libzfs_handle_t *hdl, const char *top_zfs,
nvlist_t *stream_nv, avl_tree_t *stream_avl)
nvlist_t *stream_nv)
{
int err;
nvpair_t *fselem = NULL;
Expand Down Expand Up @@ -3729,7 +3729,7 @@ zfs_receive_package(libzfs_handle_t *hdl, int fd, const char *destname,

if (raw && softerr == 0 && *top_zfs != NULL) {
softerr = recv_fix_encryption_hierarchy(hdl, *top_zfs,
stream_nv, stream_avl);
stream_nv);
}

out:
Expand Down Expand Up @@ -4992,7 +4992,7 @@ zfs_receive_checkprops(libzfs_handle_t *hdl, nvlist_t *props,
if (prop == ZPROP_INVAL) {
if (!zfs_prop_user(name)) {
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
"invalid property '%s'"), name);
"%s: invalid property '%s'"), errbuf, name);
return (B_FALSE);
}
continue;
Expand All @@ -5016,7 +5016,7 @@ zfs_receive_checkprops(libzfs_handle_t *hdl, nvlist_t *props,
if (zfs_prop_readonly(prop) || prop == ZFS_PROP_VERSION ||
prop == ZFS_PROP_VOLSIZE) {
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
"invalid property '%s'"), name);
"%s: invalid property '%s'"), errbuf, name);
return (B_FALSE);
}
}
Expand All @@ -5042,9 +5042,8 @@ zfs_receive_impl(libzfs_handle_t *hdl, const char *tosnap,
"cannot receive"));

/* check cmdline props, raise an error if they cannot be received */
if (!zfs_receive_checkprops(hdl, cmdprops, errbuf)) {
return (zfs_error(hdl, EZFS_BADPROP, errbuf));
}
if (!zfs_receive_checkprops(hdl, cmdprops, errbuf))
return (-1);

if (flags->isprefix &&
!zfs_dataset_exists(hdl, tosnap, ZFS_TYPE_DATASET)) {
Expand Down

0 comments on commit 4248e56

Please sign in to comment.