Searched refs:dsname (Results 1 - 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/
H A Dhistory_common.kshlib126 typeset dsname=${fullname%%@*}
130 for ds in $(zfs list -r -Ho name -t snapshot $dsname | \
158 typeset dsname=${fullname%%@*}
159 typeset parent_fs=${dsname##*/}
160 typeset rb_fs=${dsname}/%rollback
186 typeset dsname=${cmd##* }
191 for ds in $(zfs list -r -Ho name -t filesystem $dsname); do
212 typeset is_set lflag dflag dsname gname gid uname uid opt str code tmp
224 dsname=${cmd##* }
245 grep "permission $subcmd $dsname ([
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp_set.c38 zcp_set_user_prop(lua_State *state, dsl_pool_t *dp, const char *dsname, argument
41 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, dsname, FTAG);
60 .dpsa_dsname = args->dsname,
92 const char *dsname = args->dsname; local
97 zcp_set_user_prop(args->state, dp, dsname, prop_name,
H A Dzcp_synctask.c130 const char *dsname = lua_tostring(state, 1); local
132 boolean_t issnap = (strchr(dsname, '@') != NULL);
137 dsname));
142 ddsa.ddsa_name = dsname;
150 dsl_destroy_snapshot_sync, &ddsa, sync, dsname);
153 ddha.ddha_name = dsname;
156 dsl_destroy_head_sync, &ddha, sync, dsname);
182 const char *dsname = lua_tostring(state, 1); local
185 ddpa.ddpa_clonename = dsname;
194 dsl_dataset_promote_sync, &ddpa, sync, dsname);
218 const char *dsname = lua_tostring(state, 1); local
252 const char *dsname = lua_tostring(state, 1); local
342 const char *dsname = lua_tostring(state, 1); local
387 const char *dsname = lua_tostring(state, 1); local
[all...]
H A Ddsl_prop.c313 dsl_prop_get(const char *dsname, const char *propname, argument
319 error = dmu_objset_hold(dsname, FTAG, &os);
767 dsl_prop_set_int(const char *dsname, const char *propname, argument
774 error = dsl_props_set(dsname, source, nvl);
780 dsl_prop_set_string(const char *dsname, const char *propname, argument
787 error = dsl_props_set(dsname, source, nvl);
793 dsl_prop_inherit(const char *dsname, const char *propname, argument
800 error = dsl_props_set(dsname, source, nvl);
899 dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *props) argument
904 dpsa.dpsa_dsname = dsname;
1096 dsl_prop_get_hasrecvd(const char *dsname) argument
1105 dsl_prop_set_hasrecvd_impl(const char *dsname, zprop_source_t source) argument
1125 dsl_prop_set_hasrecvd(const char *dsname) argument
1134 dsl_prop_unset_hasrecvd(const char *dsname) argument
1146 dsl_prop_get_received(const char *dsname, nvlist_t **nvp) argument
[all...]
H A Dzcp.c591 zcp_dataset_hold_error(lua_State *state, dsl_pool_t *dp, const char *dsname, argument
595 (void) zcp_argerror(state, 1, "no such dataset '%s'", dsname);
600 dsname, spa_name(dp->dp_spa));
604 "I/O error while accessing dataset '%s'", dsname);
609 error, dsname);
617 * Assumes that the dsname is argument #1 (for error reporting purposes).
620 zcp_dataset_hold(lua_State *state, dsl_pool_t *dp, const char *dsname, argument
624 int error = dsl_dataset_hold(dp, dsname, tag, &ds);
625 (void) zcp_dataset_hold_error(state, dp, dsname, error);
680 const char *dsname local
[all...]
H A Dzfs_ioctl.c689 zfs_secpolicy_setprop(const char *dsname, zfs_prop_t prop, nvpair_t *propval, argument
717 if (dsl_prop_get_integer(dsname, "zoned", &zoned,
720 if (!zoned || strlen(dsname) <= strlen(setpoint))
732 err = zfs_set_slabel_policy(dsname, strval, CRED());
739 return (zfs_secpolicy_write_perms(dsname, zfs_prop_to_name(prop), cr));
1511 getzfsvfs(const char *dsname, zfsvfs_t **zfvp) argument
1516 error = dmu_objset_hold(dsname, FTAG, &os);
2455 zfs_prop_set_userquota(const char *dsname, nvpair_t *pair) argument
2490 err = zfsvfs_hold(dsname, FTAG, &zfsvfs, B_FALSE);
2508 zfs_prop_set_special(const char *dsname, zprop_source_ argument
2617 zfs_set_prop_nvlist(const char *dsname, zprop_source_t source, nvlist_t *nvl, nvlist_t *errlist) argument
2821 clear_received_props(const char *dsname, nvlist_t *props, nvlist_t *skipped) argument
4200 zfs_check_settable(const char *dsname, nvpair_t *pair, cred_t *cr) argument
6413 zfs_ioc_load_key(const char *dsname, nvlist_t *innvl, nvlist_t *outnvl) argument
6455 zfs_ioc_unload_key(const char *dsname, nvlist_t *innvl, nvlist_t *outnvl) argument
6493 zfs_ioc_change_key(const char *dsname, nvlist_t *innvl, nvlist_t *outnvl) argument
[all...]
H A Ddsl_destroy.c87 const char *dsname = ddsa->ddsa_name; local
94 error = dsl_dataset_hold(dp, dsname, FTAG, &ds);
501 const char *dsname = ddsa->ddsa_name; local
507 int error = dsl_dataset_hold(dp, dsname, FTAG, &ds);
1069 dsl_destroy_inconsistent(const char *dsname, void *arg) argument
1073 if (dmu_objset_hold(dsname, FTAG, &os) == 0) {
1085 (void) dsl_destroy_head(dsname);
H A Ddsl_bookmark.c340 dsl_get_bookmarks(const char *dsname, nvlist_t *props, nvlist_t *outnvl) argument
346 err = dsl_pool_hold(dsname, FTAG, &dp);
349 err = dsl_dataset_hold(dp, dsname, FTAG, &ds);
H A Ddsl_crypt.c466 dsl_crypto_can_set_keylocation(const char *dsname, const char *keylocation) argument
474 ret = dsl_pool_hold(dsname, FTAG, &dp);
478 ret = dsl_dir_hold(dp, dsname, FTAG, &dd, NULL);
757 spa_keystore_load_wkey(const char *dsname, dsl_crypto_params_t *dcp, argument
777 ret = dsl_pool_hold(dsname, FTAG, &dp);
787 ret = dsl_dir_hold(dp, dsname, FTAG, &dd, NULL);
894 spa_keystore_unload_wkey(const char *dsname) argument
901 ret = spa_open(dsname, &spa, FTAG);
915 ret = dsl_pool_hold(dsname, FTAG, &dp);
924 ret = dsl_dir_hold(dp, dsname, FTA
1569 spa_keystore_change_key(const char *dsname, dsl_crypto_params_t *dcp) argument
[all...]
H A Dzcp_get.c308 get_special_prop(lua_State *state, dsl_dataset_t *ds, const char *dsname, argument
389 error = dsl_get_mountpoint(ds, dsname, strval, setpoint);
456 (void) strcpy(setpoint, dsname);
H A Ddsl_userhold.c656 dsl_dataset_get_holds(const char *dsname, nvlist_t *nvl) argument
662 err = dsl_pool_hold(dsname, FTAG, &dp);
665 err = dsl_dataset_hold(dp, dsname, FTAG, &ds);
H A Ddsl_deleg.c646 dsl_deleg_access(const char *dsname, const char *perm, cred_t *cr) argument
652 error = dsl_pool_hold(dsname, FTAG, &dp);
655 error = dsl_dataset_hold(dp, dsname, FTAG, &ds);
H A Dzcp_iter.c394 const char *dsname = lua_tostring(state, 1); local
399 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, dsname, FTAG);
H A Ddsl_dataset.c1399 char dsname[ZFS_MAX_DATASET_NAME_LEN]; local
1409 (void) strlcpy(dsname, name, atp - name + 1);
1412 error = dsl_dataset_hold(dp, dsname, FTAG, &ds);
1620 char dsname[ZFS_MAX_DATASET_NAME_LEN]; local
1624 (void) strlcpy(dsname, name, atp - name + 1);
1625 VERIFY0(dsl_dataset_hold(dp, dsname, FTAG, &ds));
2245 dsl_get_mountpoint(dsl_dataset_t *ds, const char *dsname, char *value, argument
2259 * Process the dsname and source to find the full mountpoint string.
2277 ASSERT0(strncmp(dsname, source, strlen(source)));
2278 relpath = dsname
3870 dsl_dataset_set_refquota(const char *dsname, zprop_source_t source, uint64_t refquota) argument
3986 dsl_dataset_set_refreservation(const char *dsname, zprop_source_t source, uint64_t refreservation) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Ddsl_prop.h84 int dsl_prop_get_received(const char *dsname, nvlist_t **nvp);
100 int dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *nvl);
101 int dsl_prop_set_int(const char *dsname, const char *propname,
103 int dsl_prop_set_string(const char *dsname, const char *propname,
105 int dsl_prop_inherit(const char *dsname, const char *propname,
112 boolean_t dsl_prop_get_hasrecvd(const char *dsname);
113 int dsl_prop_set_hasrecvd(const char *dsname);
114 void dsl_prop_unset_hasrecvd(const char *dsname);
H A Dzcp_set.h36 const char *dsname; member in struct:zcp_set_prop_arg
H A Ddsl_userhold.h46 int dsl_dataset_get_holds(const char *dsname, nvlist_t *nvl);
H A Ddsl_crypt.h171 int dsl_crypto_can_set_keylocation(const char *dsname, const char *keylocation);
179 int spa_keystore_load_wkey(const char *dsname, dsl_crypto_params_t *dcp,
182 int spa_keystore_unload_wkey(const char *dsname);
201 int spa_keystore_change_key(const char *dsname, dsl_crypto_params_t *dcp);
H A Ddsl_dataset.h395 int dsl_get_mountpoint(dsl_dataset_t *ds, const char *dsname, char *value,
418 int dsl_dataset_set_refquota(const char *dsname, zprop_source_t source,
420 int dsl_dataset_set_refreservation(const char *dsname, zprop_source_t source,
H A Dzfs_vfsops.h164 extern int zfs_check_global_label(const char *dsname, const char *hexsl);
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_zvolops.c76 sdev_zvol_create_minor(char *dsname) argument
80 return ((*szcm)(dsname));
84 sdev_zvol_name2minor(char *dsname, minor_t *minor) argument
88 return ((*szn2m)(dsname, minor));
181 devzvol_objset_check(char *dsname, dmu_objset_type_t *type) argument
189 ispool = (strchr(dsname, '/') == NULL);
190 is_snapshot = (strchr(dsname, '@') != NULL);
196 (void) strlcpy(zc->zc_name, dsname, MAXPATHLEN);
226 char *dsname; local
252 dsname
280 char *dsname; local
520 char *dsname; local
611 char *dsname; local
699 char *dsname; local
[all...]
/illumos-gate/usr/src/lib/pyzfs/common/
H A Ddataset.py215 for dsname in dsnames:
216 if not "@" in dsname:
218 _("cannot open %s") % dsname,
221 ds = Dataset(dsname)
227 (base, snapname) = dsname.split('@')
H A Duserspace.py187 dsname = args[0]
205 ds = zfs.dataset.Dataset(dsname, types=("filesystem"))
/illumos-gate/usr/src/boot/lib/libstand/zfs/
H A Dzfs.c872 const char *dsname; local
877 dsname = strchr(name, '/');
878 if (dsname != NULL) {
879 len = dsname - name;
880 dsname++;
882 dsname = "";
889 rv = zfs_lookup_dataset(spa, dsname, &objid);
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_util.c649 char *dsname = (char *)path + strspn(path, "/"); local
651 hdl = zfs_open(libhdl, dsname, ZFS_TYPE_FILESYSTEM);
657 (void) strlcpy(dataset, dsname, len);

Completed in 113 milliseconds

12