Home
last modified time | relevance | path

Searched refs:propname (Results 1 – 25 of 60) sorted by relevance

123

/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_prop.c86 dsl_prop_get_dd(dsl_dir_t *dd, const char *propname, in dsl_prop_get_dd() argument
104 prop = zfs_name_to_prop(propname); in dsl_prop_get_dd()
106 inheritstr = kmem_asprintf("%s%s", propname, ZPROP_INHERIT_SUFFIX); in dsl_prop_get_dd()
107 recvdstr = kmem_asprintf("%s%s", propname, ZPROP_RECVD_SUFFIX); in dsl_prop_get_dd()
108 iuvstr = kmem_asprintf("%s%s", propname, ZPROP_IUV_SUFFIX); in dsl_prop_get_dd()
137 propname, intsz, numints, buf); in dsl_prop_get_dd()
191 dsl_prop_get_ds(dsl_dataset_t *ds, const char *propname, in dsl_prop_get_ds() argument
194 zfs_prop_t prop = zfs_name_to_prop(propname); in dsl_prop_get_ds()
209 err = zap_lookup(mos, zapobj, propname, intsz, numints, buf); in dsl_prop_get_ds()
221 char *inheritstr = kmem_asprintf("%s%s", propname, in dsl_prop_get_ds()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddsl_prop.h73 int dsl_prop_register(struct dsl_dataset *ds, const char *propname,
75 int dsl_prop_unregister(struct dsl_dataset *ds, const char *propname,
81 int dsl_prop_get(const char *ddname, const char *propname,
83 int dsl_prop_get_integer(const char *ddname, const char *propname,
87 int dsl_prop_get_ds(struct dsl_dataset *ds, const char *propname,
89 int dsl_prop_get_int_ds(struct dsl_dataset *ds, const char *propname,
91 int dsl_prop_get_dd(struct dsl_dir *dd, const char *propname,
99 void dsl_prop_set_sync_impl(struct dsl_dataset *ds, const char *propname,
103 int dsl_prop_set_int(const char *dsname, const char *propname,
105 int dsl_prop_set_string(const char *dsname, const char *propname,
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
H A Dproperty_alias_001_pos.ksh104 for propname in ${ro_prop[*]}; do
105 $ZFS get -pH -o value $propname $ds >/dev/null 2>&1
133 for propname in "volblocksize" "volblock" ; do
134 $ZFS get -pH -o value $propname $ds >/dev/null 2>&1
136 log_fail "Get the property $propname of $ds failed."
142 for propname in "recordsize" "recsize"; do
144 if [[ $propname == "recordsize" ]]; then
145 set_and_check $ds $propname $val "recsize"
147 set_and_check $ds $propname $val "recordsize"
H A Dcache_001_pos.ksh64 for propname in "primarycache" "secondarycache"
69 set_n_check_prop "${values[j]}" "$propname" "${dataset[i]}"
H A Dcompression_001_pos.ksh64 for propname in "compression" "compress"
69 set_n_check_prop "${values[j]}" "$propname" "${dataset[i]}"
H A Dcache_002_neg.ksh64 for propname in "primarycache" "secondarycache"
69 log_mustnot $ZFS set $propname=${values[j]} ${dataset[i]}
/freebsd/sys/dev/ofw/
H A Dopenfirm.h106 ssize_t OF_getproplen(phandle_t node, const char *propname);
107 ssize_t OF_getprop(phandle_t node, const char *propname, void *buf,
111 int OF_hasprop(phandle_t node, const char *propname);
112 ssize_t OF_searchprop(phandle_t node, const char *propname, void *buf,
114 ssize_t OF_searchencprop(phandle_t node, const char *propname,
116 ssize_t OF_getprop_alloc(phandle_t node, const char *propname,
118 ssize_t OF_getprop_alloc_multi(phandle_t node, const char *propname,
120 ssize_t OF_getencprop_alloc(phandle_t node, const char *propname,
122 ssize_t OF_getencprop_alloc_multi(phandle_t node, const char *propname,
125 int OF_nextprop(phandle_t node, const char *propname, cha
[all...]
H A Dopenfirm.c366 OF_getproplen(phandle_t package, const char *propname) in OF_getproplen() argument
372 return (OFW_GETPROPLEN(ofw_obj, package, propname)); in OF_getproplen()
377 OF_hasprop(phandle_t package, const char *propname) in OF_hasprop() argument
380 return (OF_getproplen(package, propname) >= 0 ? 1 : 0); in OF_hasprop()
385 OF_getprop(phandle_t package, const char *propname, void *buf, size_t buflen) in OF_getprop() argument
391 return (OFW_GETPROP(ofw_obj, package, propname, buf, buflen)); in OF_getprop()
395 OF_getencprop(phandle_t node, const char *propname, pcell_t *buf, size_t len) in OF_getencprop() argument
402 retval = OF_getprop(node, propname, buf, len); in OF_getencprop()
418 OF_searchprop(phandle_t node, const char *propname, void *buf, size_t len) in OF_searchprop() argument
423 if ((rv = OF_getprop(node, propname, bu in OF_searchprop()
429 OF_searchencprop(phandle_t node,const char * propname,pcell_t * buf,size_t len) OF_searchencprop() argument
444 OF_getprop_alloc(phandle_t package,const char * propname,void ** buf) OF_getprop_alloc() argument
469 OF_getprop_alloc_multi(phandle_t package,const char * propname,int elsz,void ** buf) OF_getprop_alloc_multi() argument
541 OF_setprop(phandle_t package,const char * propname,const void * buf,size_t len) OF_setprop() argument
[all...]
H A Dofw_fdt.c296 ofw_fdt_getproplen(ofw_t ofw, phandle_t package, const char *propname) in ofw_fdt_getproplen() argument
306 prop = fdt_getprop(fdtp, offset, propname, &len); in ofw_fdt_getproplen()
308 if (prop == NULL && strcmp(propname, "name") == 0) { in ofw_fdt_getproplen()
315 if (strcmp(propname, "fdtbootcpu") == 0) in ofw_fdt_getproplen()
317 if (strcmp(propname, "fdtmemreserv") == 0) in ofw_fdt_getproplen()
329 ofw_fdt_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf, in ofw_fdt_getprop() argument
341 prop = fdt_getprop(fdtp, offset, propname, &len); in ofw_fdt_getprop()
343 if (prop == NULL && strcmp(propname, "name") == 0) { in ofw_fdt_getprop()
351 if (strcmp(propname, "fdtbootcpu") == 0) { in ofw_fdt_getprop()
356 if (strcmp(propname, "fdtmemreserv") == 0) { in ofw_fdt_getprop()
[all …]
H A Dofw_standard.c81 const char *propname);
83 const char *propname, void *buf, size_t buflen);
86 static int ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
303 ofw_std_getproplen(ofw_t ofw, phandle_t package, const char *propname) in ofw_std_getproplen() argument
310 cell_t propname; in ofw_std_getproplen() member
319 args.propname = (cell_t)propname; in ofw_std_getproplen()
327 ofw_std_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf, in ofw_std_getprop() argument
335 cell_t propname; in ofw_std_getprop() member
346 args.propname = (cell_t)propname; in ofw_std_getprop()
384 ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname, in ofw_std_setprop() argument
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dproperty_alias_001_pos.ksh93 for propname in ${ro_prop[*]}; do
94 log_must eval "zfs get -pH -o value $propname $ds >/dev/null 2>&1"
120 for propname in "volblocksize" "volblock" ; do
121 log_must eval "zfs get -pH -o value $propname $ds >/dev/null 2>&1"
127 for propname in "recordsize" "recsize"; do
129 if [[ $propname == "recordsize" ]]; then
130 set_and_check $ds $propname $val "recsize"
132 set_and_check $ds $propname $val "recordsize"
H A Dcache_001_pos.ksh51 for propname in "primarycache" "secondarycache"
56 set_n_check_prop "${values[j]}" "$propname" "${dataset[i]}"
H A Dcompression_001_pos.ksh52 for propname in "compression" "compress"
57 set_n_check_prop "${values[j]}" "$propname" "${dataset[i]}"
H A Dcache_002_neg.ksh55 for propname in "primarycache" "secondarycache"
60 log_mustnot zfs set $propname=${values[j]} ${dataset[i]}
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_set/
H A Dzpool_set_features.ksh55 propname="feature@$feature"
58 log_must zpool set "$propname=enabled" $TESTPOOL1
59 propval="$(get_pool_prop $propname $TESTPOOL1)"
66 propname="feature@$feature"
69 log_mustnot zpool set "$propname=disabled" $TESTPOOL1
70 propval="$(get_pool_prop $propname $TESTPOOL1)"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_tempname.ksh58 IFS='=' read -r propname propval <<<"$fsprop"
59 log_must test "$(get_prop $propname $TEMPPOOL)" == "$propval"
60 IFS='=' read -r propname propval <<<"$poolprop"
61 log_must test "$(get_pool_prop $propname $TEMPPOOL)" == "$propval"
/freebsd/tests/sys/cddl/zfs/tests/compression/
H A Dcompress_003_pos.ksh71 for propname in "compression" "compress"
75 log_must $ZFS set $propname=$value $fs
79 real_val=$(get_prop $propname $fs)
81 log_fail "Set property $propname=$value failed."
H A Dcompress_004_pos.ksh95 for propname in "compression" "compress"
100 real_val=$(get_prop $propname $fs)
105 log_fail "Set property $propname=$value failed."
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/compression/
H A Dcompress_003_pos.ksh63 for propname in "compression" "compress"
67 log_must zfs set $propname=$value $fs
71 real_val=$(get_prop $propname $fs)
73 log_fail "Set property $propname=$value failed."
H A Dcompress_004_pos.ksh94 for propname in "compression" "compress"
99 real_val=$(get_prop $propname $fs)
104 log_fail "Set property $propname=$value failed."
/freebsd/stand/libofw/
H A Dopenfirm.c233 OF_getproplen(phandle_t package, const char *propname) in OF_getproplen() argument
240 cell_t propname; in OF_getproplen() member
246 args.propname = IN(propname); in OF_getproplen()
254 OF_getprop(phandle_t package, const char *propname, void *buf, int buflen) in OF_getprop() argument
261 cell_t propname; in OF_getprop() member
269 args.propname = IN(propname); in OF_getprop()
279 OF_getencprop(phandle_t package, const char *propname, cell_t *buf, int buflen) in OF_getencprop() argument
282 retval = OF_getprop(package, propname, buf, buflen); in OF_getencprop()
318 OF_setprop(phandle_t package, const char *propname, void *buf, int len) in OF_setprop() argument
325 cell_t propname; in OF_setprop() member
[all …]
/freebsd/sys/contrib/openzfs/module/zcommon/
H A Dzprop_common.c250 const char *propname = prop_entry->pd_name; in propname_match() local
256 ASSERT(propname != NULL); in propname_match()
258 if (len == strlen(propname) && in propname_match()
259 strncmp(p, propname, len) == 0) in propname_match()
277 const char *propname; member
286 if (propname_match(data->propname, strlen(data->propname), in zprop_name_to_prop_cb()
294 zprop_name_to_prop(const char *propname, zfs_type_t type) in zprop_name_to_prop() argument
299 cb_data.propname = propname; in zprop_name_to_prop()
/freebsd/sys/powerpc/ofw/
H A Dofw_real.c88 const char *propname);
89 static ssize_t ofw_real_getprop(ofw_t, phandle_t package, const char *propname,
93 static int ofw_real_setprop(ofw_t, phandle_t package, const char *propname,
550 ofw_real_getproplen(ofw_t ofw, phandle_t package, const char *propname) in ofw_real_getproplen() argument
558 cell_t propname; in ofw_real_getproplen() member
569 args.propname = IN(ofw_real_map(propname, strlen(propname) + 1)); in ofw_real_getproplen()
571 if (args.propname == 0 || openfirmware((void *)argsptr) == -1) { in ofw_real_getproplen()
582 ofw_real_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf, in ofw_real_getprop() argument
591 cell_t propname; in ofw_real_getprop() member
604 args.propname = IN(ofw_real_map(propname, strlen(propname) + 1)); in ofw_real_getprop()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_util.c1323 const char *propname = (type == ZFS_TYPE_POOL) ? in zprop_print_headers() local
1329 assert(propname != NULL); in zprop_print_headers()
1330 len = strlen(propname); in zprop_print_headers()
1411 zprop_nvlist_one_property(const char *propname, in zprop_nvlist_one_property() argument
1493 (nvlist_add_nvlist(nvl, propname, prop)) != 0) { in zprop_nvlist_one_property()
1509 const char *propname, const char *value, zprop_source_t sourcetype, in zprop_print_one_property() argument
1532 str = propname; in zprop_print_one_property()
1596 const char *propname, const char *value, zprop_source_t sourcetype, in zprop_collect_property() argument
1603 return (zprop_nvlist_one_property(propname, value, in zprop_collect_property()
1609 propname, value, sourcetype, source, recvd_value); in zprop_collect_property()
[all …]
H A Dlibzfs_dataset.c74 static int userquota_propname_decode(const char *propname, boolean_t zoned,
1054 const char *propname = nvpair_name(elem); in zfs_valid_proplist() local
1056 prop = zfs_name_to_prop(propname); in zfs_valid_proplist()
1057 if (prop == ZPROP_USERPROP && zfs_prop_user(propname)) { in zfs_valid_proplist()
1064 "'%s' must be a string"), propname); in zfs_valid_proplist()
1072 propname); in zfs_valid_proplist()
1078 if (nvlist_add_string(ret, propname, strval) != 0) { in zfs_valid_proplist()
1096 if (prop == ZPROP_USERPROP && zfs_prop_userquota(propname)) { in zfs_valid_proplist()
1104 if (userquota_propname_decode(propname, zoned, in zfs_valid_proplist()
1109 propname); in zfs_valid_proplist()
1754 zfs_prop_set(zfs_handle_t * zhp,const char * propname,const char * propval) zfs_prop_set() argument
1978 zfs_prop_inherit(zfs_handle_t * zhp,const char * propname,boolean_t received) zfs_prop_inherit() argument
2422 zfs_prop_get_recvd(zfs_handle_t * zhp,const char * propname,char * propbuf,size_t proplen,boolean_t literal) zfs_prop_get_recvd() argument
3167 userquota_propname_decode(const char * propname,boolean_t zoned,zfs_userquota_prop_t * typep,char * domain,int domainlen,uint64_t * ridp) userquota_propname_decode() argument
3285 zfs_prop_get_userquota_common(zfs_handle_t * zhp,const char * propname,uint64_t * propvalue,zfs_userquota_prop_t * typep) zfs_prop_get_userquota_common() argument
3309 zfs_prop_get_userquota_int(zfs_handle_t * zhp,const char * propname,uint64_t * propvalue) zfs_prop_get_userquota_int() argument
3319 zfs_prop_get_userquota(zfs_handle_t * zhp,const char * propname,char * propbuf,int proplen,boolean_t literal) zfs_prop_get_userquota() argument
3355 zfs_prop_get_written_int(zfs_handle_t * zhp,const char * propname,uint64_t * propvalue) zfs_prop_get_written_int() argument
3390 zfs_prop_get_written(zfs_handle_t * zhp,const char * propname,char * propbuf,int proplen,boolean_t literal) zfs_prop_get_written() argument
[all...]

123