/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_diff.c | 168 dsl_dataset_t *tosnap; in dmu_diff() local 181 error = dsl_dataset_hold(dp, tosnap_name, FTAG, &tosnap); in dmu_diff() 189 dsl_dataset_rele(tosnap, FTAG); in dmu_diff() 194 if (!dsl_dataset_is_before(tosnap, fromsnap, 0)) { in dmu_diff() 196 dsl_dataset_rele(tosnap, FTAG); in dmu_diff() 204 dsl_dataset_long_hold(tosnap, FTAG); in dmu_diff() 221 error = traverse_dataset(tosnap, fromtxg, in dmu_diff() 232 dsl_dataset_long_rele(tosnap, FTAG); in dmu_diff() 233 dsl_dataset_rele(tosnap, FTAG); in dmu_diff()
|
H A D | dmu_send.c | 1218 dmu_send_obj(const char *pool, uint64_t tosnap, uint64_t fromsnap, in dmu_send_obj() argument 1233 err = dsl_dataset_hold_obj_flags(dp, tosnap, dsflags, FTAG, &ds); in dmu_send_obj() 1283 dmu_send(const char *tosnap, const char *fromsnap, boolean_t embedok, in dmu_send() argument 1298 err = dsl_pool_hold(tosnap, FTAG, &dp); in dmu_send() 1301 if (strchr(tosnap, '@') == NULL && spa_writeable(dp->dp_spa)) { in dmu_send() 1306 err = dsl_dataset_own(dp, tosnap, dsflags, FTAG, &ds); in dmu_send() 1309 err = dsl_dataset_hold_flags(dp, tosnap, dsflags, FTAG, &ds); in dmu_send() 1319 int fsnamelen = strchr(tosnap, '@') - tosnap; in dmu_send() 1325 if (strncmp(tosnap, fromsnap, fsnamelen) != 0 || in dmu_send()
|
H A D | zfs_ioctl.c | 4741 zfs_ioc_recv_impl(char *tofs, char *tosnap, char *origin, nvlist_t *recvprops, in zfs_ioc_recv_impl() argument 4766 error = dmu_recv_begin(tofs, tosnap, begin_record, force, in zfs_ioc_recv_impl() 5070 char *tosnap; in zfs_ioc_recv() local 5081 tosnap = strchr(tofs, '@'); in zfs_ioc_recv() 5082 *tosnap++ = '\0'; in zfs_ioc_recv() 5109 error = zfs_ioc_recv_impl(tofs, tosnap, origin, recvdprops, localprops, in zfs_ioc_recv() 5164 dsl_dataset_t *tosnap; in zfs_ioc_send() local 5170 error = dsl_dataset_hold_obj(dp, zc->zc_sendobj, FTAG, &tosnap); in zfs_ioc_send() 5176 if (dsl_dir_is_clone(tosnap->ds_dir)) in zfs_ioc_send() 5178 dsl_dir_phys(tosnap->ds_dir)->dd_origin_obj; in zfs_ioc_send() [all …]
|
H A D | dmu_recv.c | 727 dmu_recv_begin(char *tofs, char *tosnap, dmu_replay_record_t *drr_begin, in dmu_recv_begin() argument 736 drc->drc_tosnap = tosnap; in dmu_recv_begin()
|
H A D | dsl_dataset.c | 2849 dsl_dataset_rollback(const char *fsname, const char *tosnap, void *owner, in dsl_dataset_rollback() argument 2855 ddra.ddra_tosnap = tosnap; in dsl_dataset_rollback()
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_diff.c | 64 char *tosnap; member 281 tobjerr = get_stats_for_obj(di, di->tosnap, dobj, tobjname, in write_inuse_diffs_one() 534 di->tosnap = zfs_asprintf(hdl, "%s@%s", di->ds, di->tmpsnap); in make_temp_snapshot() 545 free(di->tosnap); in teardown_differ_info() 553 const char *tosnap) in get_snapshot_names() argument 569 if (tosnap == NULL) { in get_snapshot_names() 598 atptrt = strchr(tosnap, '@'); in get_snapshot_names() 600 tdslen = atptrt ? atptrt - tosnap : strlen(tosnap); in get_snapshot_names() 602 tsnlen = strlen(tosnap) - tdslen; /* includes @ sign */ in get_snapshot_names() 608 ((tdslen != fdslen || strncmp(fromsnap, tosnap, fdslen) != 0))) { in get_snapshot_names() [all …]
|
H A D | libzfs_sendrecv.c | 617 const char *tosnap; member 670 zhp->zfs_name, sd->tosnap); in send_iterate_snap() 682 (sd->parent_fromsnap_guid == 0 && sd->tosnap && in send_iterate_snap() 683 strcmp(snapname, sd->tosnap) == 0)) { in send_iterate_snap() 831 tosnap_txg = get_snap_txg(zhp->zfs_hdl, zhp->zfs_name, sd->tosnap); in send_iterate_fs() 844 if (sd->tosnap != NULL && tosnap_txg == 0) { in send_iterate_fs() 849 "not exist\n"), zhp->zfs_name, sd->tosnap); in send_iterate_fs() 854 "exist\n"), sd->fsname, sd->tosnap, sd->recursive ? in send_iterate_fs() 856 zhp->zfs_name, sd->tosnap); in send_iterate_fs() 906 sd->fsname, sd->tosnap, zhp->zfs_name); in send_iterate_fs() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | dmu_send.h | 42 int dmu_send(const char *tosnap, const char *fromsnap, boolean_t embedok, 49 int dmu_send_obj(const char *pool, uint64_t tosnap, uint64_t fromsnap,
|
H A D | dmu_recv.h | 62 int dmu_recv_begin(char *tofs, char *tosnap,
|
H A D | dsl_dataset.h | 455 int dsl_dataset_rollback(const char *fsname, const char *tosnap, void *owner,
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_main.c | 7282 char *tosnap = NULL; in zfs_do_diff() local 7321 tosnap = (argc == 2) ? argv[1] : NULL; in zfs_do_diff() 7326 else if (tosnap) in zfs_do_diff() 7327 copy = strdup(tosnap); in zfs_do_diff() 7346 err = zfs_show_diffs(zhp, STDOUT_FILENO, fromsnap, tosnap, flags); in zfs_do_diff()
|