/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) 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 D | ndmpd_zfs.c | 2331 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/smbsrv/ |
H A D | smb_vss.c | 147 char *snapname, *path; local 183 snapname = smb_srm_alloc(sr, MAXPATHLEN); 190 * Find the corresponding snapshot name. If snapname is 193 *snapname = '\0'; 195 snapname); 196 if (*snapname == '\0') 206 snapname, cur_node, vss_root_node); 210 snapname, cur_node, vss_cur_node); 232 char *snapname, smb_node_t *dnode, smb_node_t **vss_node) 241 (void) snprintf(path, MAXPATHLEN, ".zfs/snapshot/%s/", snapname); 231 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 428 smb_vss_map_gmttoken(smb_tree_t *tree, char *path, char *gmttoken, time_t toktime, char *snapname) argument [all...] |
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_vss.c | 226 * snapname - the snapshot name to be returned [MAXPATHLEN] 229 * The snapname returned by ZFS is : <dataset name>@<snapshot name> 235 char *snapname) 251 vss_map_gmttoken.mg_snapname = snapname; 252 *snapname = '\0'; 269 zsnap = snapname; 279 (void) strlcpy(snapname, zsnap, MAXPATHLEN); 281 *snapname = '\0'; 234 smbd_vss_map_gmttoken(const char *path, char *gmttoken, time_t toktime, char *snapname) argument
|
H A D | smbd_doorsvc.c | 792 char *snapname; local 803 if ((snapname = malloc(MAXPATHLEN)) == NULL) { 809 request.gts_toktime, snapname) != 0)) { 810 *snapname = '\0'; 813 arg->rbuf = smb_string_encode(snapname, &arg->rsize); 815 free(snapname);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_userhold.c | 281 * holds is nvl of snapname -> holdname 282 * errlist will be filled in with snapname -> error 348 dsl_dataset_t *ds, nvlist_t *holds, const char *snapname) 384 snapname, holdname); 409 fnvlist_add_boolean(ddura->ddura_todelete, snapname); 413 fnvlist_add_nvlist(ddura->ddura_chkholds, snapname, 443 const char *snapname = nvpair_name(pair); local 449 error = holdfunc(dp, snapname, FTAG, &ds); 452 holds, snapname); 458 snapname, erro 347 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 D | zfs_ctldir.c | 57 * '.zfs/snapshot' (ie: '.zfs/snapshot/<snapname>') are all GFS nodes and 60 * File systems mounted ontop of the GFS nodes '.zfs/snapshot/<snapname>' 689 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local 710 err = zfsctl_snapshot_zname(dvp, name, sizeof (snapname), snapname); 712 err = zfs_secpolicy_destroy_perms(snapname, cr); 726 err = dsl_destroy_snapshot(snapname, B_FALSE); 784 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local 868 err = zfsctl_snapshot_zname(dvp, nm, sizeof (snapname), snapname); 987 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local [all...] |
H A D | dmu_objset.c | 1015 dmu_objset_snapshot_one(const char *fsname, const char *snapname) argument 1018 char *longsnap = kmem_asprintf("%s@%s", fsname, snapname); 2095 dmu_fsname(const char *snapname, char *buf) argument 2097 char *atp = strchr(snapname, '@'); 2100 if (atp - snapname >= ZFS_MAX_DATASET_NAME_LEN) 2102 (void) strlcpy(buf, snapname, atp - snapname + 1);
|
H A D | dsl_dataset.c | 584 const char *snapname; local 589 err = dsl_dir_hold(dp, name, FTAG, &dd, &snapname); 601 if (err == 0 && snapname != NULL) { 604 if (*snapname++ != '@') { 610 dprintf("looking for snapshot '%s'\n", snapname); 611 err = dsl_dataset_snap_lookup(ds, snapname, &obj); 619 (void) strlcpy(snap_ds->ds_snapname, snapname, 1130 dsl_dataset_snapshot_check_impl(dsl_dataset_t *ds, const char *snapname, argument 1151 error = dsl_dataset_snap_lookup(ds, snapname, &value); 1328 dsl_dataset_snapshot_sync_impl(dsl_dataset_t *ds, const char *snapname, argument 1521 char *snapname = nvpair_name(pair); local 1623 dsl_dataset_snapshot_tmp(const char *fsname, const char *snapname, minor_t cleanup_minor, const char *htag) argument [all...] |
H A D | zfs_ioctl.c | 3420 zfs_unmount_snap(const char *snapname) argument 3426 if (strchr(snapname, '@') == NULL) 3429 vfsp = zfs_get_vfs(snapname); 3450 zfs_unmount_snap_cb(const char *snapname, void *arg) argument 3452 return (zfs_unmount_snap(snapname)); 3669 const char *snapname = arg; local 3672 (void) snprintf(fullname, sizeof (fullname), "%s@%s", fsname, snapname); 5224 * "holds" -> { snapname -> holdname (string), ... } 5229 * snapname -> error value (int32) 5282 zfs_ioc_get_holds(const char *snapname, nvlist_ argument 5420 zfs_ioc_send_new(const char *snapname, nvlist_t *innvl, nvlist_t *outnvl) argument 5479 zfs_ioc_send_space(const char *snapname, nvlist_t *innvl, nvlist_t *outnvl) argument [all...] |
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_iter.c | 388 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local 389 (void) snprintf(snapname, sizeof (snapname), 393 snapname, ZFS_TYPE_SNAPSHOT)) { 408 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local 410 (void) snprintf(snapname, sizeof (snapname), "%s@%s", 413 snapname);
|
H A D | libzfs_dataset.c | 2938 const char *snapname; local 2942 snapname = strchr(propname, '@') + 1; 2943 if (strchr(snapname, '@')) { 2944 (void) strlcpy(zc.zc_value, snapname, sizeof (zc.zc_value)); 2946 /* snapname is the short name, append it to zhp's fsname */ 2955 (void) strlcat(zc.zc_value, snapname, sizeof (zc.zc_value)); 3457 const char *snapname; member in struct:destroydata 3468 "%s@%s", zhp->zfs_name, dd->snapname); 3482 zfs_destroy_snaps(zfs_handle_t *zhp, char *snapname, boolean_t defer) argument 3487 dd.snapname 3717 const char *snapname = nvpair_name(elem); local 4438 const char *snapname; member in struct:holdarg 4464 zfs_hold(zfs_handle_t *zhp, const char *snapname, const char *tag, boolean_t recursive, int cleanup_fd) argument 4592 zfs_release(zfs_handle_t *zhp, const char *snapname, const char *tag, boolean_t recursive) argument [all...] |
H A D | libzfs_sendrecv.c | 492 fsavl_find(avl_tree_t *avl, uint64_t snapguid, char **snapname) argument 501 if (snapname) 502 *snapname = fn->fn_snapname; 635 char *snapname; local 638 snapname = strrchr(zhp->zfs_name, '@')+1; 651 VERIFY(0 == nvlist_add_uint64(sd->parent_snaps, snapname, guid)); 656 if ((sd->fromsnap && strcmp(snapname, sd->fromsnap) == 0) || 658 strcmp(snapname, sd->tosnap) == 0)) { 664 VERIFY(0 == nvlist_add_nvlist(sd->snapprops, snapname, nv)); 915 /* these are all just the short snapname (th 1228 char *snapname; local 1398 char *snapname; local 2348 char *fsname, *snapname; local 3040 char *snapname = NULL; local [all...] |
/illumos-gate/usr/src/lib/libzfs_core/common/ |
H A D | libzfs_core.c | 433 lzc_get_holds(const char *snapname, nvlist_t **holdsp) argument 437 error = lzc_ioctl(ZFS_IOC_GET_HOLDS, snapname, innvl, holdsp); 446 * "snapname" is the full name of the snapshot to send (e.g. "pool/fs@snap") 452 * bookmark must represent an earlier point in the history of "snapname"). 453 * It can be an earlier snapshot in the same filesystem or zvol as "snapname", 454 * or it can be the origin of "snapname"'s filesystem, or an earlier 469 lzc_send(const char *snapname, const char *from, int fd, argument 472 return (lzc_send_resume(snapname, from, fd, flags, 0, 0)); 476 lzc_send_resume(const char *snapname, const char *from, int fd, argument 496 err = lzc_ioctl(ZFS_IOC_SEND_NEW, snapname, arg 517 lzc_send_space(const char *snapname, const char *from, enum lzc_send_flags flags, uint64_t *spacep) argument 561 recv_impl(const char *snapname, nvlist_t *props, const char *origin, boolean_t force, boolean_t resumable, int fd, const dmu_replay_record_t *begin_record) argument 653 lzc_receive(const char *snapname, nvlist_t *props, const char *origin, boolean_t force, int fd) argument 666 lzc_receive_resumable(const char *snapname, nvlist_t *props, const char *origin, boolean_t force, int fd) argument 684 lzc_receive_with_header(const char *snapname, nvlist_t *props, const char *origin, boolean_t force, boolean_t resumable, int fd, const dmu_replay_record_t *begin_record) argument 712 const char *snapname = fnvlist_lookup_string(result, "target"); local [all...] |
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_internal.c | 1065 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 D | svccfg_libscf.c | 15328 lscf_revert(const char *snapname) argument 15346 if (snapname != NULL) { 15351 if (scf_instance_get_snapshot(cur_inst, snapname, snap) != 15356 "\"%s\".\n"), snapname); 15524 if (snapname == NULL) {
|
/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", 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 D | tlm_backup_reader.c | 641 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/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.c | 1120 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 D | scf_tmpl.c | 6390 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 D | lowlevel.c | 3428 const char *svcname, const char *instname, const char *snapname, 3449 if (strlcpy(request.rpr_name, snapname, 3427 _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/zfs/ |
H A D | zfs_main.c | 5580 const char *snapname; local 5585 snapname = delim + 1; 5586 if (strcmp(cbp->cb_snapname, snapname)) 5663 const char *snapname; local 5672 snapname = delim + 1; 5677 cb.cb_snapname = snapname; 6848 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local 6889 (void) strncpy(snapname, argv[1], sizeof (snapname)); 6890 *strchr(snapname, '#') [all...] |
/illumos-gate/usr/src/cmd/ztest/ |
H A D | ztest.c | 3238 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local 3241 (void) snprintf(snapname, sizeof (snapname), "%llu", (u_longlong_t)id); 3243 error = dmu_objset_snapshot_one(osname, snapname); 3250 snapname, error); 3258 char snapname[ZFS_MAX_DATASET_NAME_LEN]; local 3261 (void) snprintf(snapname, sizeof (snapname), "%s@%llu", osname, 3264 error = dsl_destroy_snapshot(snapname, B_FALSE); 3266 fatal(0, "ztest_snapshot_destroy(%s) = %d", snapname, erro 4648 user_release_one(const char *snapname, const char *holdname) argument 4672 char snapname[100]; local [all...] |