Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/history/
H A Dhistory_common.kshlib135 typeset dsname=${fullname%%@*}
139 for ds in $(zfs list -r -Ho name -t snapshot $dsname | \
165 typeset dsname=${fullname%%@*}
166 typeset parent_fs=${dsname##*/}
167 typeset rb_fs=${dsname}/%rollback
190 typeset dsname=${cmd##* }
195 for ds in $(zfs list -r -Ho name -t filesystem $dsname); do
214 typeset is_set lflag dflag dsname gname gid uname uid opt str code tmp
225 dsname=${cmd##* }
246 if ! grep -q "permission $subcmd $dsname ([0-9]*) $code" $NEW_HISTORY; then
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzcp_synctask.c137 const char *dsname = lua_tostring(state, 1); in zcp_synctask_destroy() local
139 boolean_t issnap = (strchr(dsname, '@') != NULL); in zcp_synctask_destroy()
144 dsname)); in zcp_synctask_destroy()
149 ddsa.ddsa_name = dsname; in zcp_synctask_destroy()
157 dsl_destroy_snapshot_sync, &ddsa, sync, dsname); in zcp_synctask_destroy()
160 ddha.ddha_name = dsname; in zcp_synctask_destroy()
163 dsl_destroy_head_sync, &ddha, sync, dsname); in zcp_synctask_destroy()
189 const char *dsname = lua_tostring(state, 1); in zcp_synctask_promote() local
192 ddpa.ddpa_clonename = dsname; in zcp_synctask_promote()
202 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.c345 dsl_prop_get(const char *dsname, const char *propname, in dsl_prop_get() argument
351 error = dmu_objset_hold(dsname, FTAG, &os); in dsl_prop_get()
904 dsl_prop_set_int(const char *dsname, const char *propname, in dsl_prop_set_int() argument
911 error = dsl_props_set(dsname, source, nvl); in dsl_prop_set_int()
917 dsl_prop_set_string(const char *dsname, const char *propname, in dsl_prop_set_string() argument
924 error = dsl_props_set(dsname, source, nvl); in dsl_prop_set_string()
930 dsl_prop_inherit(const char *dsname, const char *propname, in dsl_prop_inherit() argument
937 error = dsl_props_set(dsname, source, nvl); in dsl_prop_inherit()
1036 dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *props) in dsl_props_set() argument
1041 dpsa.dpsa_dsname = dsname; in dsl_props_set()
[all …]
H A Dzvol.c961 char *dsname = job->name; in zvol_prefetch_minors_impl() local
964 job->error = dmu_objset_own(dsname, DMU_OST_ZVOL, B_TRUE, B_TRUE, in zvol_prefetch_minors_impl()
976 zvol_create_snap_minor_cb(const char *dsname, void *arg) in zvol_create_snap_minor_cb() argument
985 if (name && strcmp(dsname, name) == 0) in zvol_create_snap_minor_cb()
989 if (strchr(dsname, '@') == 0) { in zvol_create_snap_minor_cb()
991 "%s is not a snapshot name\n", dsname); in zvol_create_snap_minor_cb()
994 char *n = kmem_strdup(dsname); in zvol_create_snap_minor_cb()
1017 zvol_add_clones(const char *dsname, list_t *minors_list) in zvol_add_clones() argument
1023 if (dsl_pool_hold(dsname, FTAG, &dp) != 0) in zvol_add_clones()
1030 if (dsl_dir_hold(dp, dsname, FTAG, &dd, NULL) != 0) in zvol_add_clones()
[all …]
H A Dzfs_ioctl.c603 zfs_secpolicy_setprop(const char *dsname, zfs_prop_t prop, nvpair_t *propval, in zfs_secpolicy_setprop() argument
633 if (dsl_prop_get_integer(dsname, in zfs_secpolicy_setprop()
636 if (!zoned || strlen(dsname) <= strlen(setpoint)) in zfs_secpolicy_setprop()
648 err = zfs_set_slabel_policy(dsname, strval, CRED()); in zfs_secpolicy_setprop()
655 return (zfs_secpolicy_write_perms(dsname, zfs_prop_to_name(prop), cr)); in zfs_secpolicy_setprop()
1377 getzfsvfs(const char *dsname, zfsvfs_t **zfvp) in getzfsvfs() argument
1382 error = dmu_objset_hold(dsname, FTAG, &os); in getzfsvfs()
2422 zfs_prop_set_userquota(const char *dsname, nvpair_t *pair) in zfs_prop_set_userquota() argument
2456 err = zfsvfs_hold(dsname, FTAG, &zfsvfs, B_FALSE); in zfs_prop_set_userquota()
2474 zfs_prop_set_special(const char *dsname, zprop_source_t source, in zfs_prop_set_special() argument
[all …]
H A Dzcp.c595 zcp_dataset_hold_error(lua_State *state, dsl_pool_t *dp, const char *dsname, in zcp_dataset_hold_error() argument
599 (void) zcp_argerror(state, 1, "no such dataset '%s'", dsname); in zcp_dataset_hold_error()
604 dsname, spa_name(dp->dp_spa)); in zcp_dataset_hold_error()
608 "I/O error while accessing dataset '%s'", dsname); in zcp_dataset_hold_error()
613 error, dsname); in zcp_dataset_hold_error()
624 zcp_dataset_hold(lua_State *state, dsl_pool_t *dp, const char *dsname, in zcp_dataset_hold() argument
628 int error = dsl_dataset_hold(dp, dsname, tag, &ds); in zcp_dataset_hold()
629 (void) zcp_dataset_hold_error(state, dp, dsname, error); in zcp_dataset_hold()
685 const char *dsname = lua_tostring(state, 1); in zcp_exists() local
688 int error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in zcp_exists()
[all …]
H A Dzcp_iter.c406 const char *dsname = lua_tostring(state, 1); in zcp_user_props_list() local
411 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, dsname, FTAG); in zcp_user_props_list()
590 const char *dsname = lua_tostring(state, 1); in zcp_bookmarks_list() local
593 dsl_dataset_t *ds = zcp_dataset_hold(state, dp, dsname, FTAG); in zcp_bookmarks_list()
603 return (zcp_argerror(state, 1, "%s is a snapshot", dsname)); in zcp_bookmarks_list()
H A Ddsl_destroy.c94 const char *dsname = ddsa->ddsa_name; in dsl_destroy_snapshot_check() local
101 error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_destroy_snapshot_check()
574 const char *dsname = ddsa->ddsa_name; in dsl_destroy_snapshot_sync() local
580 int error = dsl_dataset_hold(dp, dsname, FTAG, &ds); in dsl_destroy_snapshot_sync()
585 zvol_remove_minors(dp->dp_spa, dsname, B_TRUE); in dsl_destroy_snapshot_sync()
1273 dsl_destroy_inconsistent(const char *dsname, void *arg) in dsl_destroy_inconsistent() argument
1278 if (dmu_objset_hold(dsname, FTAG, &os) == 0) { in dsl_destroy_inconsistent()
1290 (void) dsl_destroy_head(dsname); in dsl_destroy_inconsistent()
H A Ddsl_crypt.c474 dsl_crypto_can_set_keylocation(const char *dsname, const char *keylocation) in dsl_crypto_can_set_keylocation() argument
482 ret = dsl_pool_hold(dsname, FTAG, &dp); in dsl_crypto_can_set_keylocation()
486 ret = dsl_dir_hold(dp, dsname, FTAG, &dd, NULL); in dsl_crypto_can_set_keylocation()
771 spa_keystore_load_wkey(const char *dsname, dsl_crypto_params_t *dcp, in spa_keystore_load_wkey() argument
791 ret = dsl_pool_hold(dsname, FTAG, &dp); in spa_keystore_load_wkey()
801 ret = dsl_dir_hold(dp, dsname, FTAG, &dd, NULL); in spa_keystore_load_wkey()
868 zvol_create_minors_recursive(dsname); in spa_keystore_load_wkey()
920 spa_keystore_unload_wkey(const char *dsname) in spa_keystore_unload_wkey() argument
927 ret = spa_open(dsname, &spa, FTAG); in spa_keystore_unload_wkey()
941 ret = dsl_pool_hold(dsname, FTAG, &dp); in spa_keystore_unload_wkey()
[all …]
/freebsd/sbin/bectl/
H A Dbectl_list.c58 static int print_snapshots(const char *dsname, struct printc *pc);
119 char *dsname, *sep; in dataset_space() local
124 dsname = strdup(oname); in dataset_space()
125 if (dsname == NULL) in dataset_space()
129 if ((sep = strchr(dsname, '@')) != NULL) in dataset_space()
133 free(dsname); in dataset_space()
137 if (be_get_dataset_props(be, dsname, dsprops) != 0) { in dataset_space()
139 free(dsname); in dataset_space()
147 free(dsname); in dataset_space()
152 print_snapshots(const char *dsname, struct printc *pc) in print_snapshots() argument
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddsl_prop.h86 int dsl_prop_get_received(const char *dsname, nvlist_t **nvp);
102 int dsl_props_set(const char *dsname, zprop_source_t source, nvlist_t *nvl);
103 int dsl_prop_set_int(const char *dsname, const char *propname,
105 int dsl_prop_set_string(const char *dsname, const char *propname,
107 int dsl_prop_inherit(const char *dsname, const char *propname,
114 boolean_t dsl_prop_get_hasrecvd(const char *dsname);
115 int dsl_prop_set_hasrecvd(const char *dsname);
116 void dsl_prop_unset_hasrecvd(const char *dsname);
H A Ddsl_crypt.h171 int dsl_crypto_can_set_keylocation(const char *dsname, const char *keylocation);
180 int spa_keystore_load_wkey(const char *dsname, dsl_crypto_params_t *dcp,
183 int spa_keystore_unload_wkey(const char *dsname);
202 int spa_keystore_change_key(const char *dsname, dsl_crypto_params_t *dcp);
H A Dzcp_set.h32 const char *dsname; member
H A Ddsl_dataset.h420 int dsl_get_mountpoint(dsl_dataset_t *ds, const char *dsname, char *value,
443 int dsl_dataset_set_refquota(const char *dsname, zprop_source_t source,
445 int dsl_dataset_set_refreservation(const char *dsname, zprop_source_t source,
447 int dsl_dataset_set_compression(const char *dsname, zprop_source_t source,
H A Ddsl_userhold.h46 int dsl_dataset_get_holds(const char *dsname, nvlist_t *nvl);
H A Dzfs_ioctl_impl.h84 void zfs_ioctl_update_mount_cache(const char *dsname);
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_clone/
H A Dzfs_clone_deeply_nested.ksh51 dsname="$clonesfs/0@$snapname"
52 log_must zfs snapshot $dsname
56 log_must zfs clone $dsname $clonesfs/$c
57 dsname="$clonesfs/$c@$snapname"
58 log_must zfs snapshot $dsname
/freebsd/cddl/contrib/opensolaris/lib/pyzfs/common/
H A Ddataset.py214 for dsname in dsnames:
215 if not "@" in dsname:
217 _("cannot open %s") % dsname,
220 ds = Dataset(dsname)
226 (base, snapname) = dsname.split('@')
H A Duserspace.py186 dsname = args[0]
204 ds = zfs.dataset.Dataset(dsname, types=("filesystem"))
/freebsd/stand/libsa/zfs/
H A Dzfs.c60 const char *name, const char *dsname, int checkpoint);
62 const char *dsname);
1710 const char *dsname; in split_devname() local
1717 dsname = strchr(name, '/'); in split_devname()
1718 if (dsname != NULL) { in split_devname()
1719 len = dsname - name; in split_devname()
1720 dsname++; in split_devname()
1722 dsname = ""; in split_devname()
1730 *dsnamep = dsname; in split_devname()
1741 const char *dsname; in zfs_list() local
[all …]
/freebsd/usr.sbin/makefs/zfs/
H A Ddsl.c254 char *dsname, *next, *params, *param, *nextparam; in dsl_init() local
257 dsname = strsep(&params, dspropdelim); in dsl_init()
259 if (strcmp(dsname, zfs->poolname) == 0) { in dsl_init()
269 if (strstr(dsname, zfs->poolname) != dsname || in dsl_init()
270 (next = strchr(dsname, '/')) == NULL || in dsl_init()
271 (size_t)(next - dsname) != strlen(zfs->poolname)) { in dsl_init()
273 dsname, zfs->poolname); in dsl_init()
275 dir = dsl_dir_alloc(zfs, dsname); in dsl_init()
/freebsd/sys/contrib/openzfs/contrib/pam_zfs_key/
H A Dpam_zfs_key.c438 char *dsname; member
484 config->dsname = NULL; in zfs_key_config_load()
517 free(config->dsname); in zfs_key_config_free()
542 return (target->dsname != NULL); in find_dsname_by_prop_value()
545 target->dsname = strdup(zfs_get_name(zhp)); in find_dsname_by_prop_value()
572 char *dsname = config->dsname; in zfs_key_config_get_dataset() local
573 config->dsname = NULL; in zfs_key_config_get_dataset()
574 return (dsname); in zfs_key_config_get_dataset()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_ioctl_os.c136 zfs_ioctl_update_mount_cache(const char *dsname) in zfs_ioctl_update_mount_cache() argument
140 if (getzfsvfs(dsname, &zfsvfs) == 0) { in zfs_ioctl_update_mount_cache()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_ctldir.c1006 char *dsname; in zfsctl_snapdir_mkdir() local
1012 dsname = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in zfsctl_snapdir_mkdir()
1019 dmu_objset_name(zfsvfs->z_os, dsname); in zfsctl_snapdir_mkdir()
1021 error = zfs_secpolicy_snapshot_perms(dsname, cr); in zfsctl_snapdir_mkdir()
1026 error = dmu_objset_snapshot_one(dsname, dirname); in zfsctl_snapdir_mkdir()
1034 kmem_free(dsname, ZFS_MAX_DATASET_NAME_LEN); in zfsctl_snapdir_mkdir()

12