Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_zvolops.c76 sdev_zvol_create_minor(char *dsname) in sdev_zvol_create_minor() argument
80 return ((*szcm)(dsname)); in sdev_zvol_create_minor()
84 sdev_zvol_name2minor(char *dsname, minor_t *minor) in sdev_zvol_name2minor() argument
88 return ((*szn2m)(dsname, minor)); in sdev_zvol_name2minor()
181 devzvol_objset_check(char *dsname, dmu_objset_type_t *type) in devzvol_objset_check() argument
189 ispool = (strchr(dsname, '/') == NULL); in devzvol_objset_check()
190 is_snapshot = (strchr(dsname, '@') != NULL); in devzvol_objset_check()
196 (void) strlcpy(zc->zc_name, dsname, MAXPATHLEN); in devzvol_objset_check()
226 char *dsname; in devzvol_make_dsname() local
252 dsname = kmem_zalloc(dslen, KM_SLEEP); in devzvol_make_dsname()
[all …]
/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 ([0-9]*) $code" \
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp_synctask.c132 const char *dsname = lua_tostring(state, 1); in zcp_synctask_destroy() local
134 boolean_t issnap = (strchr(dsname, '@') != NULL); in zcp_synctask_destroy()
139 dsname)); in zcp_synctask_destroy()
144 ddsa.ddsa_name = dsname; in zcp_synctask_destroy()
152 dsl_destroy_snapshot_sync, &ddsa, sync, dsname); in zcp_synctask_destroy()
155 ddha.ddha_name = dsname; in zcp_synctask_destroy()
158 dsl_destroy_head_sync, &ddha, sync, dsname); in zcp_synctask_destroy()
184 const char *dsname = lua_tostring(state, 1); in zcp_synctask_promote() local
187 ddpa.ddpa_clonename = dsname; in zcp_synctask_promote()
196 dsl_dataset_promote_sync, &ddpa, sync, dsname); in zcp_synctask_promote()
[all …]
H A Dzcp_set.c38 zcp_set_user_prop(lua_State *state, dsl_pool_t *dp, const char *dsname, in zcp_set_user_prop() argument
41 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, dsname, FTAG); in zcp_set_user_prop()
60 .dpsa_dsname = args->dsname, in zcp_set_prop_check()
92 const char *dsname = args->dsname; in zcp_set_prop_sync() local
97 zcp_set_user_prop(args->state, dp, dsname, prop_name, in zcp_set_prop_sync()
H A Ddsl_prop.c313 dsl_prop_get(const char *dsname, const char *propname, in dsl_prop_get() argument
319 error = dmu_objset_hold(dsname, FTAG, &os); in dsl_prop_get()
767 dsl_prop_set_int(const char *dsname, const char *propname, in dsl_prop_set_int() argument
774 error = dsl_props_set(dsname, source, nvl); in dsl_prop_set_int()
780 dsl_prop_set_string(const char *dsname, const char *propname, in dsl_prop_set_string() argument
787 error = dsl_props_set(dsname, source, nvl); in dsl_prop_set_string()
793 dsl_prop_inherit(const char *dsname, const char *propname, in dsl_prop_inherit() argument
800 error = dsl_props_set(dsname, source, nvl); in dsl_prop_inherit()
899 dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *props) in dsl_props_set() argument
904 dpsa.dpsa_dsname = dsname; in dsl_props_set()
[all …]
H A Dzcp.c591 zcp_dataset_hold_error(lua_State *state, dsl_pool_t *dp, const char *dsname, in zcp_dataset_hold_error() argument
595 (void) zcp_argerror(state, 1, "no such dataset '%s'", dsname); in zcp_dataset_hold_error()
600 dsname, spa_name(dp->dp_spa)); in zcp_dataset_hold_error()
604 "I/O error while accessing dataset '%s'", dsname); in zcp_dataset_hold_error()
609 error, dsname); in zcp_dataset_hold_error()
620 zcp_dataset_hold(lua_State *state, dsl_pool_t *dp, const char *dsname, in zcp_dataset_hold() argument
624 int error = dsl_dataset_hold(dp, dsname, tag, &ds); in zcp_dataset_hold()
625 (void) zcp_dataset_hold_error(state, dp, dsname, error); in zcp_dataset_hold()
680 const char *dsname = lua_tostring(state, 1); in zcp_exists() local
683 int error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in zcp_exists()
[all …]
H A Dzfs_ioctl.c691 zfs_secpolicy_setprop(const char *dsname, zfs_prop_t prop, nvpair_t *propval, in zfs_secpolicy_setprop() argument
719 if (dsl_prop_get_integer(dsname, "zoned", &zoned, in zfs_secpolicy_setprop()
722 if (!zoned || strlen(dsname) <= strlen(setpoint)) in zfs_secpolicy_setprop()
734 err = zfs_set_slabel_policy(dsname, strval, CRED()); in zfs_secpolicy_setprop()
741 return (zfs_secpolicy_write_perms(dsname, zfs_prop_to_name(prop), cr)); in zfs_secpolicy_setprop()
1513 getzfsvfs(const char *dsname, zfsvfs_t **zfvp) in getzfsvfs() argument
1518 error = dmu_objset_hold(dsname, FTAG, &os); in getzfsvfs()
2457 zfs_prop_set_userquota(const char *dsname, nvpair_t *pair) in zfs_prop_set_userquota() argument
2492 err = zfsvfs_hold(dsname, FTAG, &zfsvfs, B_FALSE); in zfs_prop_set_userquota()
2510 zfs_prop_set_special(const char *dsname, zprop_source_t source, in zfs_prop_set_special() argument
[all …]
H A Ddsl_destroy.c87 const char *dsname = ddsa->ddsa_name; in dsl_destroy_snapshot_check() local
94 error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_destroy_snapshot_check()
501 const char *dsname = ddsa->ddsa_name; in dsl_destroy_snapshot_sync() local
507 int error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_destroy_snapshot_sync()
1069 dsl_destroy_inconsistent(const char *dsname, void *arg) in dsl_destroy_inconsistent() argument
1073 if (dmu_objset_hold(dsname, FTAG, &os) == 0) { in dsl_destroy_inconsistent()
1085 (void) dsl_destroy_head(dsname); in dsl_destroy_inconsistent()
H A Ddsl_bookmark.c340 dsl_get_bookmarks(const char *dsname, nvlist_t *props, nvlist_t *outnvl) in dsl_get_bookmarks() argument
346 err = dsl_pool_hold(dsname, FTAG, &dp); in dsl_get_bookmarks()
349 err = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_get_bookmarks()
H A Ddsl_crypt.c466 dsl_crypto_can_set_keylocation(const char *dsname, const char *keylocation) in dsl_crypto_can_set_keylocation() argument
474 ret = dsl_pool_hold(dsname, FTAG, &dp); in dsl_crypto_can_set_keylocation()
478 ret = dsl_dir_hold(dp, dsname, FTAG, &dd, NULL); in dsl_crypto_can_set_keylocation()
757 spa_keystore_load_wkey(const char *dsname, dsl_crypto_params_t *dcp, in spa_keystore_load_wkey() argument
777 ret = dsl_pool_hold(dsname, FTAG, &dp); in spa_keystore_load_wkey()
787 ret = dsl_dir_hold(dp, dsname, FTAG, &dd, NULL); in spa_keystore_load_wkey()
894 spa_keystore_unload_wkey(const char *dsname) in spa_keystore_unload_wkey() argument
901 ret = spa_open(dsname, &spa, FTAG); in spa_keystore_unload_wkey()
915 ret = dsl_pool_hold(dsname, FTAG, &dp); in spa_keystore_unload_wkey()
924 ret = dsl_dir_hold(dp, dsname, FTAG, &dd, NULL); in spa_keystore_unload_wkey()
[all …]
H A Ddsl_deleg.c646 dsl_deleg_access(const char *dsname, const char *perm, cred_t *cr) in dsl_deleg_access() argument
652 error = dsl_pool_hold(dsname, FTAG, &dp); in dsl_deleg_access()
655 error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_deleg_access()
H A Ddsl_userhold.c656 dsl_dataset_get_holds(const char *dsname, nvlist_t *nvl) in dsl_dataset_get_holds() argument
662 err = dsl_pool_hold(dsname, FTAG, &dp); in dsl_dataset_get_holds()
665 err = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_dataset_get_holds()
H A Dzcp_get.c308 get_special_prop(lua_State *state, dsl_dataset_t *ds, const char *dsname, in get_special_prop() argument
389 error = dsl_get_mountpoint(ds, dsname, strval, setpoint); in get_special_prop()
457 (void) strlcpy(setpoint, dsname, in get_special_prop()
H A Dzcp_iter.c394 const char *dsname = lua_tostring(state, 1); in zcp_props_list() local
399 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, dsname, FTAG); in zcp_props_list()
H A Ddsl_dataset.c1399 char dsname[ZFS_MAX_DATASET_NAME_LEN]; in dsl_dataset_snapshot_check() local
1409 (void) strlcpy(dsname, name, atp - name + 1); in dsl_dataset_snapshot_check()
1412 error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_dataset_snapshot_check()
1620 char dsname[ZFS_MAX_DATASET_NAME_LEN]; in dsl_dataset_snapshot_sync() local
1624 (void) strlcpy(dsname, name, atp - name + 1); in dsl_dataset_snapshot_sync()
1625 VERIFY0(dsl_dataset_hold(dp, dsname, FTAG, &ds)); in dsl_dataset_snapshot_sync()
2245 dsl_get_mountpoint(dsl_dataset_t *ds, const char *dsname, char *value, in dsl_get_mountpoint() argument
2277 ASSERT0(strncmp(dsname, source, strlen(source))); in dsl_get_mountpoint()
2278 relpath = dsname + strlen(source); in dsl_get_mountpoint()
3871 dsl_dataset_set_refquota(const char *dsname, zprop_source_t source, in dsl_dataset_set_refquota() 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 Ddsl_crypt.h176 int dsl_crypto_can_set_keylocation(const char *dsname, const char *keylocation);
184 int spa_keystore_load_wkey(const char *dsname, dsl_crypto_params_t *dcp,
187 int spa_keystore_unload_wkey(const char *dsname);
206 int spa_keystore_change_key(const char *dsname, dsl_crypto_params_t *dcp);
H A Dzcp_set.h36 const char *dsname; member
H A Ddsl_userhold.h46 int dsl_dataset_get_holds(const char *dsname, nvlist_t *nvl);
H A Ddsl_dataset.h396 int dsl_get_mountpoint(dsl_dataset_t *ds, const char *dsname, char *value,
419 int dsl_dataset_set_refquota(const char *dsname, zprop_source_t source,
421 int dsl_dataset_set_refreservation(const char *dsname, zprop_source_t source,
H A Dzfs_vfsops.h166 extern int zfs_check_global_label(const char *dsname, const char *hexsl);
/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/libsa/zfs/
H A Dzfs.c1710 const char *dsname; in zfs_list() local
1715 dsname = strchr(name, '/'); in zfs_list()
1716 if (dsname != NULL) { in zfs_list()
1717 len = dsname - name; in zfs_list()
1718 dsname++; in zfs_list()
1720 dsname = ""; in zfs_list()
1727 rv = zfs_lookup_dataset(spa, dsname, &objid); in zfs_list()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_util.c649 char *dsname = (char *)path + strspn(path, "/"); in smb_getdataset() local
651 hdl = zfs_open(libhdl, dsname, ZFS_TYPE_FILESYSTEM); in smb_getdataset()
657 (void) strlcpy(dataset, dsname, len); in smb_getdataset()

12