Lines Matching defs:tosnap
56 char *tosnap;
216 char *tosnap;
221 tosnap = di->tosnap;
243 tobjerr = get_path_for_obj(di, tosnap, dobj,
261 char *tosnap;
267 tosnap = di->tosnap;
273 (void) strlcpy(tozp->zc_name, tosnap, sizeof (tozp->zc_name));
621 di->tosnap = zfs_asprintf(hdl, "%s@%s", di->ds, di->tmpsnap);
632 free(di->tosnap);
640 const char *tosnap)
655 atptrt = strchr(tosnap, '@');
656 tdslen = atptrt ? atptrt - tosnap : strlen(tosnap);
657 di->ds = zfs_strdup(hdl, tosnap);
662 di->tosnap = zfs_strdup(hdl, tosnap);
675 if (tosnap == NULL) {
703 atptrt = strchr(tosnap, '@');
705 tdslen = atptrt ? atptrt - tosnap : strlen(tosnap);
707 tsnlen = strlen(tosnap) - tdslen; /* includes @ sign */
718 ((tdslen != fdslen || strncmp(fromsnap, tosnap, fdslen) != 0))) {
721 * tosnap is a clone of a fromsnap descendant.
730 (void) strncpy(di->ds, tosnap, tdslen);
764 di->tosnap = zfs_strdup(hdl, tosnap);
772 (void) strncpy(di->ds, fdslen ? fromsnap : tosnap, dslen);
777 di->tosnap = zfs_asprintf(hdl, "%s%s", di->ds, atptrt);
816 strptr = strchr(di->tosnap, '@');
851 const char *tosnap, differ_info_t *di)
858 if (get_snapshot_names(di, fromsnap, tosnap) != 0)
871 const char *tosnap, int flags, diff_scan_cb_t *cb_func, void *cb_arg)
893 if (setup_differ_info(zhp, fromsnap, tosnap, &di)) {
919 (void) strlcpy(zc.zc_name, di.tosnap, strlen(di.tosnap) + 1);
934 di.tosnap, di.fromsnap);
1272 const char *tosnap, nvlist_t *fields, int flags)
1319 rc = zfs_scan_diffs(zhp, fromsnap, tosnap, flags, zdiff_print_cb, &di);