Lines Matching defs:tosnap

232 	 * txg of tosnap snapshot in current dataset
248 const char *tosnap;
264 * "tosnap" -> string
303 const char *to = sd->tosnap;
328 * an incremental replication), we will substitute the tosnap.
517 tosnap_txg = get_snap_txg(zhp->zfs_hdl, zhp->zfs_name, sd->tosnap);
522 * On the send side, if the current dataset does not have tosnap,
526 * the parent tosnap.
528 * the parent tosnap, unless --skip-missing specified. Then
531 if (sd->tosnap != NULL && tosnap_txg == 0) {
536 "not exist\n"), zhp->zfs_name, sd->tosnap);
542 zhp->zfs_name, sd->tosnap);
546 "exist\n"), sd->fsname, sd->tosnap, sd->recursive ?
548 zhp->zfs_name, sd->tosnap);
598 sd->fsname, sd->tosnap, zhp->zfs_name);
618 if (sd->doall || sd->replicate || sd->tosnap == NULL) {
630 zhp->zfs_name, sd->tosnap);
655 zhp->zfs_name, sd->tosnap);
683 const char *tosnap, boolean_t recursive, boolean_t raw, boolean_t doall,
699 sd.tosnap = tosnap;
734 const char *tosnap;
1077 send_print_verbose(FILE *fout, const char *tosnap, const char *fromsnap,
1083 "incremental\t%s\t%s"), fromsnap, tosnap);
1097 "full\t%s"), tosnap);
1109 "send from @%s to %s"), fromsnap, tosnap);
1112 "send from %s to %s"), fromsnap, tosnap);
1116 "full send of %s"), tosnap);
1179 istosnap = (strcmp(sdd->tosnap, thissnap) == 0);
1305 * Make sure the tosnap exists.
1308 zhp->zfs_name, sdd->tosnap);
1312 zhp->zfs_name, sdd->tosnap);
1345 if (sdd->doall || sdd->replicate || sdd->tosnap == NULL) {
1351 if (sdd->tosnap != NULL) {
1353 zhp->zfs_name, sdd->tosnap);
1374 /* Dump tosnap. */
1377 "%s@%s", zhp->zfs_name, sdd->tosnap);
1391 zhp->zfs_name, sdd->tosnap,
1400 zhp->zfs_name, sdd->tosnap,
1406 zhp->zfs_name, sdd->tosnap);
2192 * (the "tosnap"). The "from" argument is the short snapshot name (the part
2210 const char *tosnap = "";
2227 tosnap = at + 1;
2236 fnvlist_add_string(hdrnv, "tosnap", tosnap);
2245 from, tosnap, recursive, raw, doall, replicate, skipmissing,
2288 tosnap) >= sizeof (drr.drr_u.drr_begin.drr_toname)) {
2315 * incremental source to send from (if non-NULL). The "tosnap" argument
2319 * 'tosnap'. Incremental streams are requested in two ways:
2334 zfs_send_cb_impl(zfs_handle_t *zhp, const char *fromsnap, const char *tosnap,
2377 "%s@%s", zhp->zfs_name, tosnap) >=
2382 zfs_handle_t *tosnap = zfs_open(zhp->zfs_hdl,
2384 if (tosnap == NULL) {
2388 err = send_prelim_records(tosnap, fromsnap, outfd,
2394 zfs_close(tosnap);
2401 sdd.tosnap = tosnap;
2540 const char *tosnap;
2551 return (zfs_send_cb_impl(zs->zhp, zs->fromsnap, zs->tosnap, zs->flags,
2556 zfs_send(zfs_handle_t *zhp, const char *fromsnap, const char *tosnap,
2563 .tosnap = tosnap,
3757 * tosnap for stream_parent_fromsnap_guid,
4401 * Restores a backup of tosnap from the file descriptor specified by infd.
4404 zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap,
4524 if (strchr(tosnap, '@')) {
4552 if (strchr(tosnap, '@')) {
4562 } else if (strchr(tosnap, '@') == NULL) {
4590 (void) strlcpy(destsnap, tosnap, sizeof (destsnap));
4933 create_parents(hdl, destsnap, strlen(tosnap)) != 0) {
5427 zfs_receive_impl(libzfs_handle_t *hdl, const char *tosnap,
5448 !zfs_dataset_exists(hdl, tosnap, ZFS_TYPE_DATASET)) {
5450 "(%s) does not exist"), tosnap);
5552 return (zfs_receive_one(hdl, infd, tosnap, originsnap, flags,
5558 return (zfs_receive_package(hdl, infd, tosnap, flags, &drr,
5564 * Restores a backup of tosnap from the file descriptor specified by infd.
5571 zfs_receive(libzfs_handle_t *hdl, const char *tosnap, nvlist_t *props,
5594 err = zfs_receive_impl(hdl, tosnap, originsnap, flags, infd, NULL, NULL,