Lines Matching defs:tosnap
64 char *tosnap;
273 tobjerr = get_stats_for_obj(di, di->tosnap, dobj, tobjname,
526 di->tosnap = zfs_asprintf(hdl, "%s@%s", di->ds, di->tmpsnap);
537 free(di->tosnap);
545 const char *tosnap)
561 if (tosnap == NULL) {
590 atptrt = strchr(tosnap, '@');
592 tdslen = atptrt ? atptrt - tosnap : strlen(tosnap);
594 tsnlen = strlen(tosnap) - tdslen; /* includes @ sign */
600 ((tdslen != fdslen || strncmp(fromsnap, tosnap, fdslen) != 0))) {
603 * tosnap is a clone of a fromsnap descendant.
610 (void) strncpy(di->ds, tosnap, tdslen);
640 di->tosnap = zfs_strdup(hdl, tosnap);
648 (void) strncpy(di->ds, fdslen ? fromsnap : tosnap, dslen);
653 di->tosnap = zfs_asprintf(hdl, "%s%s", di->ds, atptrt);
692 strptr = strchr(di->tosnap, '@');
724 const char *tosnap, differ_info_t *di)
731 if (get_snapshot_names(di, fromsnap, tosnap) != 0)
745 const char *tosnap, int flags)
757 if (setup_differ_info(zhp, fromsnap, tosnap, &di)) {
786 (void) strlcpy(zc.zc_name, di.tosnap, strlen(di.tosnap) + 1);