Home
last modified time | relevance | path

Searched refs:prop_name (Results 1 – 25 of 123) sorted by relevance

12345

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/
H A Duser_property_004_pos.ksh82 prop_name=$(valid_user_property 10)
84 log_must eval "zfs set $prop_name='$value' $fs"
85 log_must eval "check_user_prop $fs $prop_name '$value'"
90 log_mustnot nonexist_user_prop $prop_name $fssnap
92 log_must eval "zfs set $prop_name='$value' $fssnap"
93 log_mustnot nonexist_user_prop $prop_name $fssnap
95 log_must nonexist_user_prop $prop_name $fssnap
96 log_mustnot eval "zfs set $prop_name='$value' $fssnap"
97 log_must nonexist_user_prop $prop_name $fssnap
H A Duser_property_002_pos.ksh105 prop_name=$(valid_user_property 10)
107 log_must eval "zfs set $prop_name='$value' $pool"
108 log_must eval "check_user_prop $pool $prop_name '$value'"
109 log_must inherit_check $prop_name $pool $fs $vol $fsclone $volclone
114 log_must inherit_check $prop_name $pool $fs $new_fsclone $new_volclone
118 log_must eval "zfs set $prop_name='$new_value' $fs"
119 log_must eval "check_user_prop $fs $prop_name '$new_value'"
120 log_must inherit_check $prop_name $fs $new_fsclone $new_volclone
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_snapshot/
H A Dzfs_snapshot_006_pos.ksh77 prop_name=$(valid_user_property 10)
80 log_must eval "zfs snapshot -o $prop_name='$value' $fssnap"
82 log_mustnot nonexist_user_prop $prop_name $fssnap
89 log_must eval "zfs snapshot -o $prop_name='$value' -o $prop_name2='$value2' $fssnap"
91 log_mustnot nonexist_user_prop $prop_name $fssnap
97 prop_name=$(valid_user_property 10)
100 log_must eval "zfs snapshot -r -o $prop_name='$value' $TESTPOOL@snap"
104 log_mustnot nonexist_user_prop $prop_name $fssnap
114 log_must eval "zfs snapshot -r -o $prop_name='$value' -o $prop_name2='$value2' $TESTPOOL@snap"
118 log_mustnot nonexist_user_prop $prop_name $fssnap
H A Dzfs_snapshot_007_neg.ksh87 prop_name=$(valid_user_property 10)
90 log_must eval "zfs snapshot -o $prop_name='$value' $fssnap"
92 log_mustnot nonexist_user_prop $prop_name $fssnap
99 log_must eval "zfs snapshot -o $prop_name='$value' -o $prop_name2='$value2' $fssnap"
101 log_mustnot nonexist_user_prop $prop_name $fssnap
109 prop_name=$(valid_user_property 10)
112 log_must eval "zfs snapshot -r -o $prop_name='$value' $TESTPOOL@snap"
116 log_mustnot nonexist_user_prop $prop_name $fssnap
124 log_must eval "zfs snapshot -r -o $prop_name='$value' -o $prop_name2='$value2' $TESTPOOL@snap"
128 log_mustnot nonexist_user_prop $prop_name $fssnap
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_smhba.c33 char *prop_name, void *prop_val) in pmcs_smhba_add_hba_prop() argument
40 prop_name, *(int *)prop_val)) { in pmcs_smhba_add_hba_prop()
42 "%s: %s prop update failed", __func__, prop_name); in pmcs_smhba_add_hba_prop()
47 prop_name, (char *)prop_val)) { in pmcs_smhba_add_hba_prop()
49 "%s: %s prop update failed", __func__, prop_name); in pmcs_smhba_add_hba_prop()
55 __func__, dt, prop_name); in pmcs_smhba_add_hba_prop()
65 char *prop_name, void *prop_val) in pmcs_smhba_add_iport_prop() argument
73 prop_name, *(int *)prop_val)) { in pmcs_smhba_add_iport_prop()
75 "%s: %s prop update failed", __func__, prop_name); in pmcs_smhba_add_iport_prop()
80 prop_name, (char *)prop_val)) { in pmcs_smhba_add_iport_prop()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_inherit/
H A Dzfs_inherit_003_pos.ksh61 typeset prop_name=$(valid_user_property 10)
64 log_must eval "zfs set $prop_name='$value' $ds"
68 typeset snapvalue=$(get_prop $prop_name $ds@$TESTSNAP)
71 log_fail "The '$ds@$TESTSNAP '$prop_name' value '$snapvalue' " \
76 log_must eval "zfs set $prop_name='$snapvalue' $ds@$TESTSNAP"
78 log_must zfs inherit $prop_name $ds@$TESTSNAP
80 snapvalue=$(get_prop $prop_name $ds@$TESTSNAP)
83 log_fail "The '$ds@$TESTSNAP '$prop_name' value '$snapvalue' " \
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp_set.c39 const char *prop_name, const char *prop_val, dmu_tx_t *tx) in zcp_set_user_prop() argument
46 fnvlist_add_string(nvl, prop_name, prop_val); in zcp_set_user_prop()
58 const char *prop_name = args->prop; in zcp_set_prop_check() local
71 if (!zfs_prop_user(prop_name)) { in zcp_set_prop_check()
93 const char *prop_name = args->prop; in zcp_set_prop_sync() local
96 if (zfs_prop_user(prop_name)) { in zcp_set_prop_sync()
97 zcp_set_user_prop(args->state, dp, dsname, prop_name, in zcp_set_prop_sync()
H A Dzcp_get.c520 const char *prop_name = zfs_prop_to_name(zfs_prop); in get_zap_prop() local
525 error = dsl_prop_get_ds(ds, prop_name, 1, in get_zap_prop()
530 error = dsl_prop_get_ds(ds, prop_name, sizeof (numval), in get_zap_prop()
598 const char *prop_name = zfs_prop_to_name(zfs_prop); in zcp_get_system_prop() local
614 prop_name, error)); in zcp_get_system_prop()
622 prop_name, error)); in zcp_get_system_prop()
629 get_userquota_prop(const char *prop_name) in get_userquota_prop() argument
634 if (strncmp(prop_name, zfs_userquota_prop_prefixes[type], in get_userquota_prop()
650 parse_userquota_prop(const char *prop_name, zfs_userquota_prop_t *type, in parse_userquota_prop() argument
655 *type = get_userquota_prop(prop_name); in parse_userquota_prop()
[all …]
/illumos-gate/usr/src/common/mdesc/
H A Dmdesc_getproparcs.c57 mde_str_cookie_t prop_name; in md_get_prop_arcs() local
66 prop_name = md_find_name(ptr, namep); in md_get_prop_arcs()
67 if (prop_name == MDE_INVAL_STR_COOKIE) { in md_get_prop_arcs()
71 result = md_find_node_arcs(mdp, node, prop_name, MDET_PROP_ARC, arcp, in md_get_prop_arcs()
84 mde_str_cookie_t prop_name, int tag_type, mde_cookie_t *arcp, in md_find_node_arcs() argument
107 (MDE_NAME(mdep) == prop_name)) { in md_find_node_arcs()
H A Dmdesc_getpropstr.c34 mde_str_cookie_t prop_name; in md_get_prop_str() local
44 prop_name = md_find_name(ptr, namep); in md_get_prop_str()
45 if (prop_name == MDE_INVAL_STR_COOKIE) { in md_get_prop_str()
49 elem = md_find_node_prop(mdp, node, prop_name, MDET_PROP_STR); in md_get_prop_str()
H A Dmdesc_getpropval.c40 mde_str_cookie_t prop_name; in md_get_prop_val() local
50 prop_name = md_find_name(ptr, namep); in md_get_prop_val()
51 if (prop_name == MDE_INVAL_STR_COOKIE) { in md_get_prop_val()
55 elem = md_find_node_prop(mdp, node, prop_name, MDET_PROP_VAL); in md_get_prop_val()
H A Dmdesc_getpropdata.c35 mde_str_cookie_t prop_name; in md_get_prop_data() local
45 prop_name = md_find_name(ptr, namep); in md_get_prop_data()
46 if (prop_name == MDE_INVAL_STR_COOKIE) { in md_get_prop_data()
50 elem = md_find_node_prop(mdp, node, prop_name, MDET_PROP_DAT); in md_get_prop_data()
H A Dmdesc_findnodeprop.c35 mde_str_cookie_t prop_name, in md_find_node_prop() argument
42 prop_name == MDE_INVAL_STR_COOKIE) { in md_find_node_prop()
67 if (MDE_NAME(mdep) == prop_name) { in md_find_node_prop()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Drc_scf.c109 char prop_name[256]; in rc_scf_get_sharectl() local
147 if (scf_pg_get_name(pg, prop_name, sizeof (prop_name)) < 0) in rc_scf_get_sharectl()
149 if (strncmp(prop_name, "S-", 2) != 0) in rc_scf_get_sharectl()
178 if (scf_property_get_name(prop, prop_name, in rc_scf_get_sharectl()
179 sizeof (prop_name)) < 0) in rc_scf_get_sharectl()
183 if (strcmp(prop_name, "section") == 0) in rc_scf_get_sharectl()
193 fprintf(fp, "%s=%s\n", prop_name, val_buf); in rc_scf_get_sharectl()
/illumos-gate/usr/src/cmd/mdb/common/modules/usba/
H A Dusba.c51 char prop_name[128]; in mdb_usba_is_root_hub() local
57 if (mdb_readstr(prop_name, sizeof (prop_name), in mdb_usba_is_root_hub()
58 (uintptr_t)prop.prop_name) == -1) { in mdb_usba_is_root_hub()
62 if (strcmp(prop_name, "root-hub") == 0) { in mdb_usba_is_root_hub()
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dsmfcfg.c148 fs_smf_set_prop(smf_fstype_t fstype, char *prop_name, char *valbuf, in fs_smf_set_prop() argument
224 entry, prop_name, SCF_TYPE_INTEGER) == 0) { in fs_smf_set_prop()
234 prop_name, SCF_TYPE_ASTRING) == 0) { in fs_smf_set_prop()
257 prop_name, SCF_TYPE_BOOLEAN) == 0) { in fs_smf_set_prop()
283 fs_smf_get_prop(smf_fstype_t fstype, char *prop_name, char *cbuf, in fs_smf_get_prop() argument
340 if (scf_pg_get_property(pg, prop_name, in fs_smf_get_prop()
401 nfs_smf_get_prop(char *prop_name, char *propbuf, char *instance, in nfs_smf_get_prop() argument
404 return (fs_smf_get_prop(NFS_SMF, prop_name, propbuf, in nfs_smf_get_prop()
410 nfs_smf_get_iprop(char *prop_name, int *rvp, char *instance, in nfs_smf_get_iprop() argument
417 rc = fs_smf_get_prop(NFS_SMF, prop_name, propbuf, in nfs_smf_get_iprop()
[all …]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dflowprop.c90 const char *prop_name, char **prop_val, uint_t val_cnt, uint_t flags, in dladm_set_flowprop() argument
100 status = i_dladm_set_prop_temp(handle, flow, prop_name, in dladm_set_flowprop()
109 if (i_dladm_is_prop_temponly(prop_name, errprop, &prop_tbl)) in dladm_set_flowprop()
112 status = i_dladm_set_flowprop_db(handle, flow, prop_name, in dladm_set_flowprop()
137 const char *prop_name, char **prop_val, uint_t *val_cntp) in dladm_get_flowprop() argument
141 if (flow == NULL || prop_name == NULL || prop_val == NULL || in dladm_get_flowprop()
146 if (i_dladm_is_prop_temponly(prop_name, NULL, &prop_tbl)) in dladm_get_flowprop()
148 return (i_dladm_get_flowprop_db(handle, flow, prop_name, in dladm_get_flowprop()
152 status = i_dladm_get_prop_temp(handle, flow, type, prop_name, in dladm_get_flowprop()
167 const char *prop_name, char **prop_val, uint_t val_cnt) in i_dladm_set_flowprop_db() argument
[all …]
H A Dpropfuncs.c514 const char *prop_name, char **prop_val, uint_t *val_cntp, in i_dladm_get_prop_temp() argument
522 if (name == NULL || prop_name == NULL || prop_val == NULL || in i_dladm_get_prop_temp()
527 if (strcasecmp(prop_name, prop_tbl->pt_table[i].pd_name) == 0) in i_dladm_get_prop_temp()
619 const char *prop_name, char **prop_val, uint_t val_cnt, uint_t flags, in i_dladm_set_prop_temp() argument
630 if (prop_name != NULL && in i_dladm_set_prop_temp()
631 (strcasecmp(prop_name, pdp->pd_name) != 0)) in i_dladm_set_prop_temp()
638 if (prop_name != NULL) { in i_dladm_set_prop_temp()
659 i_dladm_is_prop_temponly(const char *prop_name, char **errprop, in i_dladm_is_prop_temponly() argument
664 if (prop_name == NULL) in i_dladm_is_prop_temponly()
670 if (strcasecmp(prop_name, pdp->pd_name) != 0) in i_dladm_is_prop_temponly()
H A Dlinkprop.c1189 const char *prop_name, char **prop_val, uint_t val_cnt, uint_t flags, in i_dladm_set_linkprop() argument
1200 if (prop_name != NULL && in i_dladm_set_linkprop()
1201 (strcasecmp(prop_name, pdp->pd_name) != 0)) in i_dladm_set_linkprop()
1207 if (prop_name != NULL) { in i_dladm_set_linkprop()
1230 if (prop_name[0] == '_') { in i_dladm_set_linkprop()
1233 prop_name, prop_val, val_cnt, flags); in i_dladm_set_linkprop()
1246 const char *prop_name, char **prop_val, uint_t val_cnt, uint_t flags) in dladm_set_linkprop() argument
1256 (prop_name == NULL && prop_val != NULL)) { in dladm_set_linkprop()
1265 if (prop_name != NULL) { in dladm_set_linkprop()
1269 if (strcasecmp(prop_name, prop_table[i].pd_name) == 0) { in dladm_set_linkprop()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Ddevpool.c222 char *prop_name; in pool_ioctl() local
498 prop_name = kmem_alloc(propget.pp_o_prop_name_size + 1, in pool_ioctl()
500 if (ddi_copyin(propget.pp_o_prop_name, prop_name, in pool_ioctl()
502 kmem_free(prop_name, propget.pp_o_prop_name_size + 1); in pool_ioctl()
507 kmem_free(prop_name, propget.pp_o_prop_name_size + 1); in pool_ioctl()
510 ret = pool_propget(prop_name, propget.pp_o_id_type, in pool_ioctl()
513 kmem_free(prop_name, propget.pp_o_prop_name_size + 1); in pool_ioctl()
628 prop_name = kmem_alloc(proprm.pp_o_prop_name_size + 1, in pool_ioctl()
630 if (ddi_copyin(proprm.pp_o_prop_name, prop_name, in pool_ioctl()
632 kmem_free(prop_name, proprm.pp_o_prop_name_size + 1); in pool_ioctl()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dfindevs.c114 static char *get_byte_prop(char *prop_name, di_node_t node);
117 static int get_prom_int(char *prop_name, di_node_t node,
119 static char *get_prom_str(char *prop_name, di_node_t node,
121 static int get_prop(char *prop_name, di_node_t node);
122 static char *get_str_prop(char *prop_name, di_node_t node);
1235 get_byte_prop(char *prop_name, di_node_t node) in get_byte_prop() argument
1242 cnt = di_prop_lookup_bytes(DDI_DEV_T_ANY, node, prop_name, &bytes); in get_byte_prop()
1275 get_prom_int(char *prop_name, di_node_t node, di_prom_handle_t ph) in get_prom_int() argument
1279 if (di_prom_prop_lookup_ints(ph, node, prop_name, &n) == 1) { in get_prom_int()
1287 get_prom_str(char *prop_name, di_node_t node, di_prom_handle_t ph) in get_prom_str() argument
[all …]
/illumos-gate/usr/src/cmd/pools/poolcfg/
H A Dpoolcfg.y498 $$->prop_name = $3;
538 $$->prop_name = $2;
1237 free((void *)tmp->prop_name); in free_cmd()
1376 if (pool_put_property(conf, pe, prop->prop_name, in prop_list_walk()
1379 prop->prop_name, get_errstr()); in prop_list_walk()
1382 if (pool_rm_property(conf, pe, prop->prop_name) != 0) in prop_list_walk()
1384 prop->prop_name, get_errstr()); in prop_list_walk()
1556 if ((pos = strstr(prop->prop_name, min_suffix)) != NULL) in process_min_max()
1557 if (pos == prop->prop_name + strlen(prop->prop_name) in process_min_max()
1560 if ((pos = strstr(prop->prop_name, max_suffix)) != NULL) in process_min_max()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/
H A Dsetup.ksh88 prop_name=${props[$i]}
90 log_must zfs set $prop_name=$prop_val $TESTPOOL/$TESTFS/prop
149 prop_name=${props[$i]}
151 log_must zpool set $prop_name=$prop_val $TESTPOOL
/illumos-gate/usr/src/lib/libdevinfo/
H A Dlibdevinfo.h245 const char *prop_name, uchar_t **prop_data);
247 const char *prop_name, int **prop_data);
249 const char *prop_name, int64_t **prop_data);
251 const char *prop_name, char **prop_data);
295 const char *prop_name, uchar_t **prop_data);
297 const char *prop_name, int **prop_data);
299 const char *prop_name, int64_t **prop_data);
301 const char *prop_name, char **prop_data);
/illumos-gate/usr/src/uts/sun/io/dada/impl/
H A Ddcd_hba.c129 char *prop_name; in dcd_hba_attach() local
176 prop_name = "dcd_options"; in dcd_hba_attach()
178 if (ddi_prop_op(DDI_DEV_T_ANY, dip, PROP_LEN, 0, prop_name, in dcd_hba_attach()
182 prop_name, value) != DDI_PROP_SUCCESS) { in dcd_hba_attach()
183 cmn_err(CE_CONT, errmsg, prop_name, in dcd_hba_attach()

12345