Searched defs:snapname (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_chkpnt.c190 snapshot_hold(char *volname, char *snapname, char *jname, boolean_t recursive) argument
207 p = strchr(snapname, '@') + 1;
218 snapshot_release(char *volname, char *snapname, char *jname, argument
230 p = strchr(snapname, '@') + 1;
250 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
256 (void) snprintf(snapname, ZFS_MAX_DATASET_NAME_LEN,
260 if ((rv = zfs_snapshot(zlibh, snapname, recursive, NULL))
268 snapname, errno, libzfs_error_description(zlibh));
272 if (hold && snapshot_hold(volname, snapname, jname, recursive) != 0) {
275 snapname, errn
291 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
[all...]
H A Dndmpd_zfs.c2331 char *snapname, int namelen)
2342 err = snprintf(snapname, namelen,
2350 snapname, namelen);
2330 ndmpd_zfs_snapname_create(ndmpd_zfs_args_t *ndmpd_zfs_args, char *snapname, int namelen) argument
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp_iter.c123 const char *snapname = lua_tostring(state, 1); local
133 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, snapname, FTAG);
143 snapname));
156 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
171 dsl_dataset_name(ds, snapname);
172 VERIFY3U(sizeof (snapname), >,
173 strlcat(snapname, "@", sizeof (snapname)));
175 p = strchr(snapname, '\0');
178 sizeof (snapname)
[all...]
H A Ddsl_userhold.c302 * holds is nvl of snapname -> holdname
303 * errlist will be filled in with snapname -> error
370 dsl_dataset_t *ds, nvlist_t *holds, const char *snapname)
406 snapname, holdname);
431 fnvlist_add_boolean(ddura->ddura_todelete, snapname);
435 fnvlist_add_nvlist(ddura->ddura_chkholds, snapname,
465 const char *snapname = nvpair_name(pair); local
471 error = holdfunc(dp, snapname, FTAG, &ds);
474 holds, snapname);
480 snapname, erro
369 dsl_dataset_user_release_check_one(dsl_dataset_user_release_arg_t *ddura, dsl_dataset_t *ds, nvlist_t *holds, const char *snapname) argument
[all...]
H A Dzfs_ctldir.c57 * '.zfs/snapshot' (ie: '.zfs/snapshot/<snapname>') are all GFS nodes and
60 * File systems mounted ontop of the GFS nodes '.zfs/snapshot/<snapname>'
683 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
704 err = zfsctl_snapshot_zname(dvp, name, sizeof (snapname), snapname);
706 err = zfs_secpolicy_destroy_perms(snapname, cr);
720 err = dsl_destroy_snapshot(snapname, B_FALSE);
778 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
862 err = zfsctl_snapshot_zname(dvp, nm, sizeof (snapname), snapname);
981 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
[all...]
H A Ddmu_objset.c1458 dmu_objset_snapshot_one(const char *fsname, const char *snapname) argument
1461 char *longsnap = kmem_asprintf("%s@%s", fsname, snapname);
2935 dmu_fsname(const char *snapname, char *buf) argument
2937 char *atp = strchr(snapname, '@');
2940 if (atp - snapname >= ZFS_MAX_DATASET_NAME_LEN)
2942 (void) strlcpy(buf, snapname, atp - snapname + 1);
H A Ddsl_dataset.c650 const char *snapname; local
655 err = dsl_dir_hold(dp, name, FTAG, &dd, &snapname);
667 if (err == 0 && snapname != NULL) {
670 if (*snapname++ != '@') {
676 dprintf("looking for snapshot '%s'\n", snapname);
677 err = dsl_dataset_snap_lookup(ds, snapname, &obj);
687 (void) strlcpy(snap_ds->ds_snapname, snapname,
1235 dsl_dataset_snapshot_check_impl(dsl_dataset_t *ds, const char *snapname, argument
1256 error = dsl_dataset_snap_lookup(ds, snapname, &value);
1433 dsl_dataset_snapshot_sync_impl(dsl_dataset_t *ds, const char *snapname, argument
1667 char *snapname = nvpair_name(pair); local
1769 dsl_dataset_snapshot_tmp(const char *fsname, const char *snapname, minor_t cleanup_minor, const char *htag) argument
[all...]
H A Dzfs_ioctl.c3542 zfs_unmount_snap(const char *snapname) argument
3547 if (strchr(snapname, '@') == NULL)
3550 int err = getzfsvfs(snapname, &zfsvfs);
3572 zfs_unmount_snap_cb(const char *snapname, void *arg) argument
3574 zfs_unmount_snap(snapname);
4045 const char *snapname = arg; local
4048 (void) snprintf(fullname, sizeof (fullname), "%s@%s", fsname, snapname);
5900 * "holds" -> { snapname -> holdname (string), ... }
5905 * snapname -> error value (int32)
5958 zfs_ioc_get_holds(const char *snapname, nvlist_ argument
6099 zfs_ioc_send_new(const char *snapname, nvlist_t *innvl, nvlist_t *outnvl) argument
6160 zfs_ioc_send_space(const char *snapname, nvlist_t *innvl, nvlist_t *outnvl) argument
[all...]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_vss.c230 * snapname - the snapshot name to be returned [MAXPATHLEN]
233 * The snapname returned by ZFS is : <dataset name>@<snapshot name>
239 char *snapname)
255 vss_map_gmttoken.mg_snapname = snapname;
256 *snapname = '\0';
275 zsnap = snapname;
285 (void) strlcpy(snapname, zsnap, MAXPATHLEN);
287 *snapname = '\0';
238 smbd_vss_map_gmttoken(const char *path, char *gmttoken, time_t toktime, char *snapname) argument
H A Dsmbd_doorsvc.c837 char *snapname; local
848 if ((snapname = malloc(MAXPATHLEN)) == NULL) {
854 request.gts_toktime, snapname) != 0)) {
855 *snapname = '\0';
858 arg->rbuf = smb_string_encode(snapname, &arg->rsize);
860 free(snapname);
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_vss.c143 char *snapname, *path; local
159 snapname = smb_srm_alloc(sr, MAXPATHLEN);
166 * Find the corresponding snapshot name. If snapname is
169 *snapname = '\0';
171 snapname);
172 if (*snapname == '\0')
182 snapname, cur_node, vss_cur_node);
198 char *snapname, smb_node_t *dnode, smb_node_t **vss_node)
207 (void) snprintf(path, MAXPATHLEN, ".zfs/snapshot/%s/", snapname);
216 vp, snapname, dnod
197 smb_vss_lookup_node(smb_request_t *sr, smb_node_t *node, vnode_t *fsrootvp, char *snapname, smb_node_t *dnode, smb_node_t **vss_node) argument
394 smb_vss_map_gmttoken(smb_tree_t *tree, char *path, char *gmttoken, time_t toktime, char *snapname) argument
[all...]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_iter.c381 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
382 (void) snprintf(snapname, sizeof (snapname),
386 snapname, ZFS_TYPE_SNAPSHOT)) {
401 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
403 (void) snprintf(snapname, sizeof (snapname), "%s@%s",
406 snapname);
H A Dlibzfs_dataset.c3199 const char *snapname; local
3203 snapname = strchr(propname, '@') + 1;
3204 if (strchr(snapname, '@')) {
3205 (void) strlcpy(zc.zc_value, snapname, sizeof (zc.zc_value));
3207 /* snapname is the short name, append it to zhp's fsname */
3216 (void) strlcat(zc.zc_value, snapname, sizeof (zc.zc_value));
3767 const char *snapname; member in struct:destroydata
3778 "%s@%s", zhp->zfs_name, dd->snapname);
3792 zfs_destroy_snaps(zfs_handle_t *zhp, char *snapname, boolean_t defer) argument
3797 dd.snapname
3951 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
4063 const char *snapname = nvpair_name(elem); local
4824 const char *snapname; member in struct:holdarg
4850 zfs_hold(zfs_handle_t *zhp, const char *snapname, const char *tag, boolean_t recursive, int cleanup_fd) argument
4978 zfs_release(zfs_handle_t *zhp, const char *snapname, const char *tag, boolean_t recursive) argument
[all...]
H A Dlibzfs_sendrecv.c504 fsavl_find(avl_tree_t *avl, uint64_t snapguid, char **snapname) argument
513 if (snapname)
514 *snapname = fn->fn_snapname;
655 char *snapname; local
658 snapname = strrchr(zhp->zfs_name, '@')+1;
671 VERIFY(0 == nvlist_add_uint64(sd->parent_snaps, snapname, guid));
676 if ((sd->fromsnap && strcmp(snapname, sd->fromsnap) == 0) ||
678 strcmp(snapname, sd->tosnap) == 0)) {
684 VERIFY(0 == nvlist_add_nvlist(sd->snapprops, snapname, nv));
691 snapname, hold
1319 char *snapname; local
1489 char *snapname; local
2582 char *fsname, *snapname; local
3619 char *snapname = NULL; local
[all...]
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_internal.c1065 const char *snapname)
1144 if (snapname == NULL)
1155 ipg->sc_pgroup_name, snapname, fmri, local
1064 load_pg(const scf_propertygroup_t *pg, pgroup_t **ipgp, const char *fmri, const char *snapname) argument
H A Dsvccfg_libscf.c15330 lscf_revert(const char *snapname) argument
15348 if (snapname != NULL) {
15353 if (scf_instance_get_snapshot(cur_inst, snapname, snap) !=
15358 "\"%s\".\n"), snapname);
15526 if (snapname == NULL) {
/illumos-gate/usr/src/uts/common/io/
H A Dfssnap.c143 static char snapname[] = SNAP_NAME; variable
288 ksp = kstat_create(snapname, 0, FSSNAP_KSTAT_HIGHWATER, "misc",
1844 (void) snprintf(taskqname, sizeof (taskqname), "%s_taskq_%d", snapname,
2196 kstat_delete_byname(snapname, snapnum, FSSNAP_KSTAT_MNTPT);
2199 mntpoint = kstat_create(snapname, snapnum, FSSNAP_KSTAT_MNTPT,
2218 kstat_delete_byname(snapname, snapnum, FSSNAP_KSTAT_BFNAME);
2223 bfname = kstat_create(snapname, snapnum, FSSNAP_KSTAT_BFNAME,
2238 kstat_delete_byname(snapname, snapnum, FSSNAP_KSTAT_NUM);
2240 num = kstat_create(snapname, snapnum, FSSNAP_KSTAT_NUM,
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_backup_reader.c641 char *snapname; /* snapshot name */ local
677 snapname = ndmp_malloc(TLM_MAX_PATH_NAME);
678 if (attrname == NULL || snapname == NULL) {
683 if (!tlm_cat_path(snapname, chkdir, name)) {
689 fnamep = (tlm_acls->acl_checkpointed) ? snapname : fullname;
810 errno, fullname, snapname);
833 free(snapname);
849 char *snapname; /* snapshot name */ local
876 snapname = ndmp_malloc(TLM_MAX_PATH_NAME);
877 if (fullname == NULL || linkname == NULL || snapname
[all...]
/illumos-gate/usr/src/lib/libzfs_core/common/
H A Dlibzfs_core.c547 lzc_get_holds(const char *snapname, nvlist_t **holdsp) argument
549 return (lzc_ioctl(ZFS_IOC_GET_HOLDS, snapname, NULL, holdsp));
556 * "snapname" is the full name of the snapshot to send (e.g. "pool/fs@snap")
562 * bookmark must represent an earlier point in the history of "snapname").
563 * It can be an earlier snapshot in the same filesystem or zvol as "snapname",
564 * or it can be the origin of "snapname"'s filesystem, or an earlier
579 lzc_send(const char *snapname, const char *from, int fd, argument
582 return (lzc_send_resume(snapname, from, fd, flags, 0, 0));
586 lzc_send_resume(const char *snapname, const char *from, int fd, argument
608 err = lzc_ioctl(ZFS_IOC_SEND_NEW, snapname, arg
629 lzc_send_space(const char *snapname, const char *from, enum lzc_send_flags flags, uint64_t *spacep) argument
673 recv_impl(const char *snapname, nvlist_t *recvdprops, nvlist_t *localprops, uint8_t *wkeydata, uint_t wkeylen, const char *origin, boolean_t force, boolean_t resumable, boolean_t raw, int input_fd, const dmu_replay_record_t *begin_record, int cleanup_fd, uint64_t *read_bytes, uint64_t *errflags, uint64_t *action_handle, nvlist_t **errors) argument
810 lzc_receive(const char *snapname, nvlist_t *props, const char *origin, boolean_t raw, boolean_t force, int fd) argument
824 lzc_receive_resumable(const char *snapname, nvlist_t *props, const char *origin, boolean_t force, boolean_t raw, int fd) argument
843 lzc_receive_with_header(const char *snapname, nvlist_t *props, const char *origin, boolean_t force, boolean_t resumable, boolean_t raw, int fd, const dmu_replay_record_t *begin_record) argument
861 lzc_receive_with_cmdprops(const char *snapname, nvlist_t *props, nvlist_t *cmdprops, uint8_t *wkeydata, uint_t wkeylen, const char *origin, boolean_t force, boolean_t resumable, boolean_t raw, int input_fd, const dmu_replay_record_t *begin_record, int cleanup_fd, uint64_t *read_bytes, uint64_t *errflags, uint64_t *action_handle, nvlist_t **errors) argument
894 const char *snapname = fnvlist_lookup_string(result, "target"); local
909 lzc_rollback_to(const char *fsname, const char *snapname) argument
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c1120 char *snapname; local
1160 snapname = cname;
1161 while (*snapname && !grub_isspace(*snapname) && *snapname !=
1163 snapname++;
1164 if (*snapname == '@') {
1166 *snapname = 0;
1183 *snapname = '@';
1201 if (zap_lookup(mdn, snapname
[all...]
/illumos-gate/usr/src/lib/libscf/common/
H A Dscf_tmpl.c6390 const char *snapname, scf_tmpl_errors_t *errs)
6407 while ((ret = scf_tmpl_iter_pgs(t, fmri, snapname, NULL,
6416 while ((ret = scf_tmpl_iter_pgs(r, fmri, snapname, pg_type,
6389 _scf_tmpl_check_pg_redef(scf_handle_t *h, const char *fmri, const char *snapname, scf_tmpl_errors_t *errs) argument
H A Dlowlevel.c3443 const char *svcname, const char *instname, const char *snapname,
3464 if (strlcpy(request.rpr_name, snapname,
3442 _scf_snapshot_take_new_named(scf_instance_t *inst, const char *svcname, const char *instname, const char *snapname, scf_snapshot_t *snap) argument
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c3851 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
3854 (void) snprintf(snapname, sizeof (snapname), "%llu", (u_longlong_t)id);
3856 error = dmu_objset_snapshot_one(osname, snapname);
3863 snapname, error);
3871 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
3874 (void) snprintf(snapname, sizeof (snapname), "%s@%llu", osname,
3877 error = dsl_destroy_snapshot(snapname, B_FALSE);
3879 fatal(0, "ztest_snapshot_destroy(%s) = %d", snapname, erro
5344 user_release_one(const char *snapname, const char *holdname) argument
5368 char snapname[100]; local
[all...]
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_main.c5891 const char *snapname; local
5896 snapname = delim + 1;
5897 if (strcmp(cbp->cb_snapname, snapname))
5974 const char *snapname; local
5983 snapname = delim + 1;
5988 cb.cb_snapname = snapname;
7287 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local
7328 (void) strncpy(snapname, argv[1], sizeof (snapname));
7329 *strchr(snapname, '#')
[all...]

Completed in 471 milliseconds