Lines Matching defs:tosnap
589 * txg of tosnap snapshot in current dataset
604 const char *tosnap;
611 * "tosnap" -> string
650 zhp->zfs_name, sd->tosnap);
659 * an incremental replication), we will substitute the tosnap.
662 (sd->parent_fromsnap_guid == 0 && sd->tosnap &&
663 strcmp(snapname, sd->tosnap) == 0)) {
796 tosnap_txg = get_snap_txg(zhp->zfs_hdl, zhp->zfs_name, sd->tosnap);
801 * on the send side, if the current dataset does not have tosnap,
805 * the parent tosnap
807 * the parent tosnap
809 if (sd->tosnap != NULL && tosnap_txg == 0) {
814 "not exist\n"), zhp->zfs_name, sd->tosnap);
819 "exist\n"), sd->fsname, sd->tosnap, sd->recursive ?
821 zhp->zfs_name, sd->tosnap);
880 const char *tosnap, boolean_t recursive, boolean_t verbose,
894 sd.tosnap = tosnap;
922 const char *tosnap;
1144 send_print_verbose(FILE *fout, const char *tosnap, const char *fromsnap,
1150 fromsnap, tosnap);
1153 tosnap);
1161 fromsnap, tosnap);
1165 fromsnap, tosnap);
1170 tosnap);
1219 istosnap = (strcmp(sdd->tosnap, thissnap) == 0);
1324 zhp->zfs_name, sdd->tosnap);
1328 zhp->zfs_name, sdd->tosnap);
1359 zhp->zfs_name, sdd->tosnap,
1368 zhp->zfs_name, sdd->tosnap,
1374 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;
2649 * tosnap for stream_parent_fromsnap_guid,
3038 * Restores a backup of tosnap from the file descriptor specified by infd.
3041 zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap,
3116 if (strchr(tosnap, '@')) {
3143 if (strchr(tosnap, '@')) {
3152 } else if (strchr(tosnap, '@') == NULL) {
3178 (void) strcpy(zc.zc_value, tosnap);
3184 * For forward compatibility hide tosnap in zc_value
3187 (void) strcpy(zc.zc_value + strlen(zc.zc_value) + 1, tosnap);
3375 create_parents(hdl, zc.zc_value, strlen(tosnap)) != 0) {
3625 zfs_receive_impl(libzfs_handle_t *hdl, const char *tosnap,
3642 !zfs_dataset_exists(hdl, tosnap, ZFS_TYPE_DATASET)) {
3644 "(%s) does not exist"), tosnap);
3727 return (zfs_receive_one(hdl, infd, tosnap, originsnap, flags,
3733 return (zfs_receive_package(hdl, infd, tosnap, flags, &drr,
3739 * Restores a backup of tosnap from the file descriptor specified by infd.
3746 zfs_receive(libzfs_handle_t *hdl, const char *tosnap, nvlist_t *props,
3763 err = zfs_receive_impl(hdl, tosnap, originsnap, flags, infd, NULL, NULL,