/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_chkpnt.c | 190 snapshot_hold(char *volname, char *snapname, char *jname, boolean_t recursive) in snapshot_hold() argument 207 p = strchr(snapname, '@') + 1; in snapshot_hold() 218 snapshot_release(char *volname, char *snapname, char *jname, in snapshot_release() argument 230 p = strchr(snapname, '@') + 1; in snapshot_release() 250 char snapname[ZFS_MAX_DATASET_NAME_LEN]; in snapshot_create() local 256 (void) snprintf(snapname, ZFS_MAX_DATASET_NAME_LEN, in snapshot_create() 260 if ((rv = zfs_snapshot(zlibh, snapname, recursive, NULL)) in snapshot_create() 268 snapname, errno, libzfs_error_description(zlibh)); in snapshot_create() 272 if (hold && snapshot_hold(volname, snapname, jname, recursive) != 0) { in snapshot_create() 275 snapname, errno, libzfs_error_description(zlibh)); in snapshot_create() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/synctask_core/ |
H A D | tst.terminate_by_signal.ksh | 26 snapname=snap 53 zfs program -t $limit $TESTPOOL - $rootfs $snapname <<-EOF 58 local snapname = child .. "@" .. snap 59 zfs.check.snapshot(snapname) 60 zfs.sync.snapshot(snapname) 62 zfs.check.snapshot(snapname) 63 zfs.check.destroy(snapname)
|
H A D | tst.snapshot_recursive.ksh | 27 snapname=snap 50 $ZCP_ROOT/synctask_core/tst.snapshot_recursive.zcp $rootfs $snapname 56 log_must snapexists $fs@$snapname
|
H A D | tst.snapshot_simple.ksh | 26 snapname=testsnap 38 $ZCP_ROOT/synctask_core/tst.snapshot_simple.zcp $fs $snapname
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_vss.c | 144 char *snapname, *path; in smb_vss_lookup_nodes() local 160 snapname = smb_srm_alloc(sr, MAXPATHLEN); in smb_vss_lookup_nodes() 170 *snapname = '\0'; in smb_vss_lookup_nodes() 172 snapname); in smb_vss_lookup_nodes() 173 if (*snapname == '\0') in smb_vss_lookup_nodes() 183 snapname, cur_node, vss_cur_node); in smb_vss_lookup_nodes() 199 char *snapname, smb_node_t *dnode, smb_node_t **vss_node) in smb_vss_lookup_node() argument 208 (void) snprintf(path, MAXPATHLEN, ".zfs/snapshot/%s/", snapname); in smb_vss_lookup_node() 217 vp, snapname, dnode, NULL); in smb_vss_lookup_node() 398 time_t toktime, char *snapname) in smb_vss_map_gmttoken() argument [all …]
|
/illumos-gate/usr/src/lib/libzfs_core/common/ |
H A D | libzfs_core.c | 596 lzc_get_holds(const char *snapname, nvlist_t **holdsp) in lzc_get_holds() argument 598 return (lzc_ioctl(ZFS_IOC_GET_HOLDS, snapname, NULL, holdsp)); in lzc_get_holds() 628 lzc_send(const char *snapname, const char *from, int fd, in lzc_send() argument 631 return (lzc_send_resume(snapname, from, fd, flags, 0, 0)); in lzc_send() 635 lzc_send_resume(const char *snapname, const char *from, int fd, in lzc_send_resume() argument 657 err = lzc_ioctl(ZFS_IOC_SEND_NEW, snapname, args, NULL); in lzc_send_resume() 678 lzc_send_space(const char *snapname, const char *from, in lzc_send_space() argument 694 err = lzc_ioctl(ZFS_IOC_SEND_SPACE, snapname, args, &result); in lzc_send_space() 722 recv_impl(const char *snapname, nvlist_t *recvdprops, nvlist_t *localprops, in recv_impl() argument 747 (void) strlcpy(fsname, snapname, sizeof (fsname)); in recv_impl() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zcp_iter.c | 123 const char *snapname = lua_tostring(state, 1); in zcp_clones_list() local 133 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, snapname, FTAG); in zcp_clones_list() 143 snapname)); in zcp_clones_list() 156 char snapname[ZFS_MAX_DATASET_NAME_LEN]; in zcp_snapshots_iter() local 171 dsl_dataset_name(ds, snapname); in zcp_snapshots_iter() 172 VERIFY3U(sizeof (snapname), >, in zcp_snapshots_iter() 173 strlcat(snapname, "@", sizeof (snapname))); in zcp_snapshots_iter() 175 p = strchr(snapname, '\0'); in zcp_snapshots_iter() 178 sizeof (snapname) - (p - snapname), p, NULL, &cursor, NULL); in zcp_snapshots_iter() 191 (void) lua_pushstring(state, snapname); in zcp_snapshots_iter()
|
H A D | zfs_ctldir.c | 683 char snapname[ZFS_MAX_DATASET_NAME_LEN]; in zfsctl_snapdir_remove() local 704 err = zfsctl_snapshot_zname(dvp, name, sizeof (snapname), snapname); in zfsctl_snapdir_remove() 706 err = zfs_secpolicy_destroy_perms(snapname, cr); in zfsctl_snapdir_remove() 720 err = dsl_destroy_snapshot(snapname, B_FALSE); in zfsctl_snapdir_remove() 778 char snapname[ZFS_MAX_DATASET_NAME_LEN]; in zfsctl_snapdir_lookup() local 862 err = zfsctl_snapshot_zname(dvp, nm, sizeof (snapname), snapname); in zfsctl_snapdir_lookup() 873 if (dmu_objset_hold(snapname, FTAG, &snap) != 0) { in zfsctl_snapdir_lookup() 893 margs.spec = snapname; in zfsctl_snapdir_lookup() 981 char snapname[ZFS_MAX_DATASET_NAME_LEN]; in zfsctl_snapdir_readdir_cb() local 991 sizeof (snapname), snapname, &id, &cookie, &case_conflict); in zfsctl_snapdir_readdir_cb() [all …]
|
H A D | dsl_userhold.c | 370 dsl_dataset_t *ds, nvlist_t *holds, const char *snapname) in dsl_dataset_user_release_check_one() argument 406 snapname, holdname); in dsl_dataset_user_release_check_one() 431 fnvlist_add_boolean(ddura->ddura_todelete, snapname); in dsl_dataset_user_release_check_one() 435 fnvlist_add_nvlist(ddura->ddura_chkholds, snapname, in dsl_dataset_user_release_check_one() 465 const char *snapname = nvpair_name(pair); in dsl_dataset_user_release_check() local 471 error = holdfunc(dp, snapname, FTAG, &ds); in dsl_dataset_user_release_check() 474 holds, snapname); in dsl_dataset_user_release_check() 480 snapname, error); in dsl_dataset_user_release_check()
|
H A D | dsl_dataset.c | 650 const char *snapname; in dsl_dataset_hold_flags() local 655 err = dsl_dir_hold(dp, name, FTAG, &dd, &snapname); in dsl_dataset_hold_flags() 667 if (err == 0 && snapname != NULL) { in dsl_dataset_hold_flags() 670 if (*snapname++ != '@') { in dsl_dataset_hold_flags() 676 dprintf("looking for snapshot '%s'\n", snapname); in dsl_dataset_hold_flags() 677 err = dsl_dataset_snap_lookup(ds, snapname, &obj); in dsl_dataset_hold_flags() 687 (void) strlcpy(snap_ds->ds_snapname, snapname, in dsl_dataset_hold_flags() 1235 dsl_dataset_snapshot_check_impl(dsl_dataset_t *ds, const char *snapname, in dsl_dataset_snapshot_check_impl() argument 1256 error = dsl_dataset_snap_lookup(ds, snapname, &value); in dsl_dataset_snapshot_check_impl() 1433 dsl_dataset_snapshot_sync_impl(dsl_dataset_t *ds, const char *snapname, in dsl_dataset_snapshot_sync_impl() argument [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_vss.c | 239 char *snapname) in smbd_vss_map_gmttoken() argument 255 vss_map_gmttoken.mg_snapname = snapname; in smbd_vss_map_gmttoken() 256 *snapname = '\0'; in smbd_vss_map_gmttoken() 275 zsnap = snapname; in smbd_vss_map_gmttoken() 285 (void) strlcpy(snapname, zsnap, MAXPATHLEN); in smbd_vss_map_gmttoken() 287 *snapname = '\0'; in smbd_vss_map_gmttoken()
|
H A D | smbd_doorsvc.c | 942 char *snapname; in smbd_dop_vss_map_gmttoken() local 953 if ((snapname = malloc(MAXPATHLEN)) == NULL) { in smbd_dop_vss_map_gmttoken() 959 request.gts_toktime, snapname) != 0)) { in smbd_dop_vss_map_gmttoken() 960 *snapname = '\0'; in smbd_dop_vss_map_gmttoken() 963 arg->rbuf = smb_string_encode(snapname, &arg->rsize); in smbd_dop_vss_map_gmttoken() 965 free(snapname); in smbd_dop_vss_map_gmttoken()
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_iter.c | 386 char snapname[ZFS_MAX_DATASET_NAME_LEN]; in zfs_iter_snapspec() local 387 (void) snprintf(snapname, sizeof (snapname), in zfs_iter_snapspec() 391 snapname, ZFS_TYPE_SNAPSHOT)) { in zfs_iter_snapspec() 406 char snapname[ZFS_MAX_DATASET_NAME_LEN]; in zfs_iter_snapspec() local 408 (void) snprintf(snapname, sizeof (snapname), "%s@%s", in zfs_iter_snapspec() 411 snapname); in zfs_iter_snapspec()
|
H A D | libzfs_dataset.c | 3233 const char *snapname; in zfs_prop_get_written_int() local 3237 snapname = strchr(propname, '@') + 1; in zfs_prop_get_written_int() 3238 if (strchr(snapname, '@')) { in zfs_prop_get_written_int() 3239 (void) strlcpy(zc.zc_value, snapname, sizeof (zc.zc_value)); in zfs_prop_get_written_int() 3250 (void) strlcat(zc.zc_value, snapname, sizeof (zc.zc_value)); in zfs_prop_get_written_int() 3801 const char *snapname; member 3812 "%s@%s", zhp->zfs_name, dd->snapname); in zfs_check_snap_cb() 3826 zfs_destroy_snaps(zfs_handle_t *zhp, char *snapname, boolean_t defer) in zfs_destroy_snaps() argument 3831 dd.snapname = snapname; in zfs_destroy_snaps() 3838 zhp->zfs_name, snapname); in zfs_destroy_snaps() [all …]
|
H A D | libzfs_sendrecv.c | 509 fsavl_find(avl_tree_t *avl, uint64_t snapguid, char **snapname) in fsavl_find() argument 518 if (snapname) in fsavl_find() 519 *snapname = fn->fn_snapname; in fsavl_find() 660 char *snapname; in send_iterate_snap() local 663 snapname = strrchr(zhp->zfs_name, '@')+1; in send_iterate_snap() 676 VERIFY(0 == nvlist_add_uint64(sd->parent_snaps, snapname, guid)); in send_iterate_snap() 681 if ((sd->fromsnap && strcmp(snapname, sd->fromsnap) == 0) || in send_iterate_snap() 683 strcmp(snapname, sd->tosnap) == 0)) { in send_iterate_snap() 689 VERIFY(0 == nvlist_add_nvlist(sd->snapprops, snapname, nv)); in send_iterate_snap() 696 snapname, holds)); in send_iterate_snap() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/ |
H A D | history_common.kshlib | 127 typeset snapname=${fullname##*@} 131 grep "@$snapname"); do 161 typeset snapname=${fullname##*@} 390 typeset snapname=${fullname##*@} 401 grep "@$snapname"); do
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_backup_reader.c | 641 char *snapname; /* snapshot name */ in tlm_output_xattr() local 677 snapname = ndmp_malloc(TLM_MAX_PATH_NAME); in tlm_output_xattr() 678 if (attrname == NULL || snapname == NULL) { in tlm_output_xattr() 683 if (!tlm_cat_path(snapname, chkdir, name)) { in tlm_output_xattr() 689 fnamep = (tlm_acls->acl_checkpointed) ? snapname : fullname; in tlm_output_xattr() 810 errno, fullname, snapname); in tlm_output_xattr() 833 free(snapname); in tlm_output_xattr() 849 char *snapname; /* snapshot name */ in tlm_output_file() local 876 snapname = ndmp_malloc(TLM_MAX_PATH_NAME); in tlm_output_file() 877 if (fullname == NULL || linkname == NULL || snapname == NULL) { in tlm_output_file() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.c | 1121 char *snapname; in get_objset_mdn() local 1161 snapname = cname; in get_objset_mdn() 1162 while (*snapname && !grub_isspace(*snapname) && *snapname != in get_objset_mdn() 1164 snapname++; in get_objset_mdn() 1165 if (*snapname == '@') { in get_objset_mdn() 1167 *snapname = 0; in get_objset_mdn() 1184 *snapname = '@'; in get_objset_mdn() 1202 if (zap_lookup(mdn, snapname + 1, &headobj, stack)) in get_objset_mdn()
|
/illumos-gate/usr/src/lib/pyzfs/common/ |
H A D | dataset.py | 227 (base, snapname) = dsname.split('@') 232 snapname)
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | fssnap.c | 143 static char snapname[] = SNAP_NAME; variable 288 ksp = kstat_create(snapname, 0, FSSNAP_KSTAT_HIGHWATER, "misc", in _init() 1844 (void) snprintf(taskqname, sizeof (taskqname), "%s_taskq_%d", snapname, in fssnap_create_impl() 2196 kstat_delete_byname(snapname, snapnum, FSSNAP_KSTAT_MNTPT); in fssnap_create_kstats() 2199 mntpoint = kstat_create(snapname, snapnum, FSSNAP_KSTAT_MNTPT, in fssnap_create_kstats() 2218 kstat_delete_byname(snapname, snapnum, FSSNAP_KSTAT_BFNAME); in fssnap_create_kstats() 2223 bfname = kstat_create(snapname, snapnum, FSSNAP_KSTAT_BFNAME, in fssnap_create_kstats() 2238 kstat_delete_byname(snapname, snapnum, FSSNAP_KSTAT_NUM); in fssnap_create_kstats() 2240 num = kstat_create(snapname, snapnum, FSSNAP_KSTAT_NUM, in fssnap_create_kstats()
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | zfs_ctldir.h | 54 int zfsctl_destroy_snapshot(const char *snapname, int force);
|
H A D | dsl_dataset.h | 352 int dsl_dataset_snapshot_tmp(const char *fsname, const char *snapname, 434 int dsl_dataset_snapshot_check_impl(dsl_dataset_t *ds, const char *snapname, 436 void dsl_dataset_snapshot_sync_impl(dsl_dataset_t *ds, const char *snapname,
|
H A D | dmu_objset.h | 256 int dmu_fsname(const char *snapname, char *buf);
|
/illumos-gate/usr/src/cmd/ztest/ |
H A D | ztest.c | 3856 char snapname[ZFS_MAX_DATASET_NAME_LEN]; in ztest_snapshot_create() local 3859 (void) snprintf(snapname, sizeof (snapname), "%llu", (u_longlong_t)id); in ztest_snapshot_create() 3861 error = dmu_objset_snapshot_one(osname, snapname); in ztest_snapshot_create() 3868 snapname, error); in ztest_snapshot_create() 3876 char snapname[ZFS_MAX_DATASET_NAME_LEN]; in ztest_snapshot_destroy() local 3879 (void) snprintf(snapname, sizeof (snapname), "%s@%llu", osname, in ztest_snapshot_destroy() 3882 error = dsl_destroy_snapshot(snapname, B_FALSE); in ztest_snapshot_destroy() 3884 fatal(0, "ztest_snapshot_destroy(%s) = %d", snapname, error); in ztest_snapshot_destroy() 5494 user_release_one(const char *snapname, const char *holdname) in user_release_one() argument 5502 fnvlist_add_nvlist(snaps, snapname, holds); in user_release_one() [all …]
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_main.c | 6000 const char *snapname; in holds_callback() local 6005 snapname = delim + 1; in holds_callback() 6006 if (strcmp(cbp->cb_snapname, snapname)) in holds_callback() 6083 const char *snapname; in zfs_do_holds() local 6092 snapname = delim + 1; in zfs_do_holds() 6097 cb.cb_snapname = snapname; in zfs_do_holds() 7394 char snapname[ZFS_MAX_DATASET_NAME_LEN]; in zfs_do_bookmark() local 7435 (void) strncpy(snapname, argv[1], sizeof (snapname)); in zfs_do_bookmark() 7436 *strchr(snapname, '#') = '\0'; in zfs_do_bookmark() 7437 (void) strlcat(snapname, argv[0], sizeof (snapname)); in zfs_do_bookmark() [all …]
|