Changeset View
Changeset View
Standalone View
Standalone View
head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
Show First 20 Lines • Show All 3,428 Lines • ▼ Show 20 Lines | if (stream_wantsnewfs && | ||||
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, | zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, | ||||
"destination '%s' is a clone\n" | "destination '%s' is a clone\n" | ||||
"must destroy it to overwrite it"), | "must destroy it to overwrite it"), | ||||
zc.zc_name); | zc.zc_name); | ||||
return (zfs_error(hdl, EZFS_EXISTS, errbuf)); | return (zfs_error(hdl, EZFS_EXISTS, errbuf)); | ||||
} | } | ||||
if (!flags->dryrun && zhp->zfs_type == ZFS_TYPE_FILESYSTEM && | if (!flags->dryrun && zhp->zfs_type == ZFS_TYPE_FILESYSTEM && | ||||
stream_wantsnewfs) { | (stream_wantsnewfs || resuming)) { | ||||
/* We can't do online recv in this case */ | /* We can't do online recv in this case */ | ||||
clp = changelist_gather(zhp, ZFS_PROP_NAME, 0, | clp = changelist_gather(zhp, ZFS_PROP_NAME, 0, | ||||
flags->forceunmount ? MS_FORCE : 0); | flags->forceunmount ? MS_FORCE : 0); | ||||
if (clp == NULL) { | if (clp == NULL) { | ||||
zfs_close(zhp); | zfs_close(zhp); | ||||
zcmd_free_nvlists(&zc); | zcmd_free_nvlists(&zc); | ||||
return (-1); | return (-1); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 479 Lines • Show Last 20 Lines |