Lines Matching defs:tosnap
584 * txg of tosnap snapshot in current dataset
599 const char *tosnap;
606 * "tosnap" -> string
645 zhp->zfs_name, sd->tosnap);
654 * an incremental replication), we will substitute the tosnap.
657 (sd->parent_fromsnap_guid == 0 && sd->tosnap &&
658 strcmp(snapname, sd->tosnap) == 0)) {
791 tosnap_txg = get_snap_txg(zhp->zfs_hdl, zhp->zfs_name, sd->tosnap);
796 * on the send side, if the current dataset does not have tosnap,
800 * the parent tosnap
802 * the parent tosnap
804 if (sd->tosnap != NULL && tosnap_txg == 0) {
809 "not exist\n"), zhp->zfs_name, sd->tosnap);
814 "exist\n"), sd->fsname, sd->tosnap, sd->recursive ?
816 zhp->zfs_name, sd->tosnap);
875 const char *tosnap, boolean_t recursive, boolean_t verbose,
889 sd.tosnap = tosnap;
917 const char *tosnap;
1139 send_print_verbose(FILE *fout, const char *tosnap, const char *fromsnap,
1145 fromsnap, tosnap);
1148 tosnap);
1156 fromsnap, tosnap);
1160 fromsnap, tosnap);
1165 tosnap);
1215 istosnap = (strcmp(sdd->tosnap, thissnap) == 0);
1321 zhp->zfs_name, sdd->tosnap);
1325 zhp->zfs_name, sdd->tosnap);
1356 zhp->zfs_name, sdd->tosnap,
1365 zhp->zfs_name, sdd->tosnap,
1371 zhp->zfs_name, sdd->tosnap);
1716 * 'tosnap'. Incremental streams are requested in two ways:
1729 zfs_send(zfs_handle_t *zhp, const char *fromsnap, const char *tosnap,
1797 VERIFY(0 == nvlist_add_string(hdrnv, "tosnap", tosnap));
1804 fromsnap, tosnap, flags->replicate, flags->verbose,
1829 "%s@%s", zhp->zfs_name, tosnap);
1853 sdd.tosnap = tosnap;
2623 * tosnap for stream_parent_fromsnap_guid,
3016 * Restores a backup of tosnap from the file descriptor specified by infd.
3019 zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap,
3094 if (strchr(tosnap, '@')) {
3121 if (strchr(tosnap, '@')) {
3130 } else if (strchr(tosnap, '@') == NULL) {
3156 (void) strcpy(zc.zc_value, tosnap);
3344 create_parents(hdl, zc.zc_value, strlen(tosnap)) != 0) {
3594 zfs_receive_impl(libzfs_handle_t *hdl, const char *tosnap,
3611 !zfs_dataset_exists(hdl, tosnap, ZFS_TYPE_DATASET)) {
3613 "(%s) does not exist"), tosnap);
3696 return (zfs_receive_one(hdl, infd, tosnap, originsnap, flags,
3702 return (zfs_receive_package(hdl, infd, tosnap, flags, &drr,
3708 * Restores a backup of tosnap from the file descriptor specified by infd.
3715 zfs_receive(libzfs_handle_t *hdl, const char *tosnap, nvlist_t *props,
3732 err = zfs_receive_impl(hdl, tosnap, originsnap, flags, infd, NULL, NULL,