Home
last modified time | relevance | path

Searched refs:tosnap (Results 1 – 7 of 7) sorted by relevance

/titanic_44/usr/src/uts/common/fs/zfs/
H A Ddmu_diff.c164 dsl_dataset_t *tosnap; in dmu_diff() local
177 error = dsl_dataset_hold(dp, tosnap_name, FTAG, &tosnap); in dmu_diff()
185 dsl_dataset_rele(tosnap, FTAG); in dmu_diff()
190 if (!dsl_dataset_is_before(tosnap, fromsnap, 0)) { in dmu_diff()
192 dsl_dataset_rele(tosnap, FTAG); in dmu_diff()
200 dsl_dataset_long_hold(tosnap, FTAG); in dmu_diff()
209 error = traverse_dataset(tosnap, fromtxg, in dmu_diff()
219 dsl_dataset_long_rele(tosnap, FTAG); in dmu_diff()
220 dsl_dataset_rele(tosnap, FTAG); in dmu_diff()
H A Dzfs_ioctl.c4158 char *tosnap; in zfs_ioc_recv() local
4168 tosnap = strchr(tofs, '@'); in zfs_ioc_recv()
4169 *tosnap++ = '\0'; in zfs_ioc_recv()
4188 error = dmu_recv_begin(tofs, tosnap, in zfs_ioc_recv()
4362 dsl_dataset_t *tosnap; in zfs_ioc_send() local
4368 error = dsl_dataset_hold_obj(dp, zc->zc_sendobj, FTAG, &tosnap); in zfs_ioc_send()
4374 if (dsl_dir_is_clone(tosnap->ds_dir)) in zfs_ioc_send()
4376 dsl_dir_phys(tosnap->ds_dir)->dd_origin_obj; in zfs_ioc_send()
4377 dsl_dataset_rele(tosnap, FTAG); in zfs_ioc_send()
4383 dsl_dataset_t *tosnap; in zfs_ioc_send() local
[all …]
H A Ddmu_send.c879 dmu_send_obj(const char *pool, uint64_t tosnap, uint64_t fromsnap, in dmu_send_obj() argument
892 err = dsl_dataset_hold_obj(dp, tosnap, FTAG, &ds); in dmu_send_obj()
927 dmu_send(const char *tosnap, const char *fromsnap, boolean_t embedok, in dmu_send() argument
939 err = dsl_pool_hold(tosnap, FTAG, &dp); in dmu_send()
943 if (strchr(tosnap, '@') == NULL && spa_writeable(dp->dp_spa)) { in dmu_send()
948 err = dsl_dataset_own(dp, tosnap, FTAG, &ds); in dmu_send()
951 err = dsl_dataset_hold(dp, tosnap, FTAG, &ds); in dmu_send()
961 int fsnamelen = strchr(tosnap, '@') - tosnap; in dmu_send()
967 if (strncmp(tosnap, fromsnap, fsnamelen) != 0 || in dmu_send()
1601 dmu_recv_begin(char *tofs, char *tosnap, dmu_replay_record_t *drr_begin, in dmu_recv_begin() argument
[all …]
/titanic_44/usr/src/lib/libzfs/common/
H A Dlibzfs_diff.c71 char *tosnap; member
278 tobjerr = get_stats_for_obj(di, di->tosnap, dobj, tobjname, in write_inuse_diffs_one()
532 di->tosnap = zfs_asprintf(hdl, "%s@%s", di->ds, di->tmpsnap); in make_temp_snapshot()
543 free(di->tosnap); in teardown_differ_info()
551 const char *tosnap) in get_snapshot_names() argument
567 if (tosnap == NULL) { in get_snapshot_names()
596 atptrt = strchr(tosnap, '@'); in get_snapshot_names()
598 tdslen = atptrt ? atptrt - tosnap : strlen(tosnap); in get_snapshot_names()
600 tsnlen = strlen(tosnap) - tdslen; /* includes @ sign */ in get_snapshot_names()
606 ((tdslen != fdslen || strncmp(fromsnap, tosnap, fdslen) != 0))) { in get_snapshot_names()
[all …]
H A Dlibzfs_sendrecv.c211 zfs_send_compoundstream_begin(zfs_handle_t *zhp, const char *tosnap, in zfs_send_compoundstream_begin() argument
234 tosnap); in zfs_send_compoundstream_begin()
632 const char *tosnap; member
677 (sd->parent_fromsnap_guid == 0 && sd->tosnap && in send_iterate_snap()
678 strcmp(snapname, sd->tosnap) == 0)) { in send_iterate_snap()
826 const char *tosnap, boolean_t recursive, nvlist_t **nvlp, avl_tree_t **avlp) in gather_nvlist() argument
838 sd.tosnap = tosnap; in gather_nvlist()
865 const char *tosnap; member
1086 send_print_verbose(FILE *fout, const char *tosnap, const char *fromsnap, in send_print_verbose() argument
1092 fromsnap, tosnap); in send_print_verbose()
[all …]
/titanic_44/usr/src/uts/common/fs/zfs/sys/
H A Ddmu_send.h43 int dmu_send(const char *tosnap, const char *fromsnap, boolean_t embedok,
50 int dmu_send_obj(const char *pool, uint64_t tosnap, uint64_t fromsnap,
71 int dmu_recv_begin(char *tofs, char *tosnap,
/titanic_44/usr/src/cmd/zfs/
H A Dzfs_main.c7206 char *tosnap = NULL; in zfs_do_diff() local
7245 tosnap = (argc == 2) ? argv[1] : NULL; in zfs_do_diff()
7250 else if (tosnap) in zfs_do_diff()
7251 copy = strdup(tosnap); in zfs_do_diff()
7269 err = zfs_show_diffs(zhp, STDOUT_FILENO, fromsnap, tosnap, flags); in zfs_do_diff()