Lines Matching defs:pd
78 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
79 return (pd == NULL ? ZPROP_INVAL : zpd_propnum(pd));
112 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
113 return (zpd_get_type(pd));
119 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
120 return (pd == NULL ? B_FALSE : zpd_is_boolean(pd));
132 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
134 return (pd == NULL ? B_TRUE : zpd_is_string(pd));
140 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
141 return (zpd_strdefault(pd));
147 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
148 return (zpd_numdefault(pd));
154 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
155 return (zpd_inheritable(pd));
161 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
162 return (zpd_readonly(pd));
168 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
169 return (zpd_setonce(pd));
175 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
176 return (zpd_values(pd));
194 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
195 return (pd == NULL ? B_FALSE : zpd_is_size(pd));
207 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
208 return (zpd_visible(pd));
214 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
215 return (pd == NULL ? B_FALSE : zpd_align_right(pd));
221 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_opaque;
222 return (zpd_column_name(pd));
252 zprop_desc_free(zprop_desc_t *pd)
255 if (pd->pd_strdefault != NULL)
256 free((void *)pd->pd_strdefault);
257 free((void *)pd->pd_values);
258 if (pd->pd_colname != NULL)
259 free((void *)pd->pd_colname);
260 free(pd);
278 zprop_desc_t *pd = (zprop_desc_t *)zpd->zpd_d.zpd_opaque;
279 zprop_desc_free(pd);
793 nvpair_t *xprop, zprop_desc_t *pd)
821 pd->pd_colname = zfs_strdup(table->zpt_libzfs, colname);
822 pd->pd_name = name;
837 ASSERT(pd->pd_proptype == PROP_TYPE_STRING);
838 ASSERT(pd->pd_strdefault != NULL);
855 strcasecmp(pd->pd_name, pd->pd_colname) != 0) {
863 strlen(pd->pd_colname) + 1);
864 for (i = 0; pd->pd_colname[i] != '\0'; i++)
865 aname[i] = tolower(pd->pd_colname[i]);
885 pnode->zpd_d.zpd_opaque = pd;
889 pnode->zpd_d.zpd_zfs_types = pd->pd_types;
991 zprop_desc_t *pd = &prop_table[prop];
993 VERIFY3U(0, ==, zprop_load_one(table, pd->pd_name,
994 NULL, NULL, pd));
1007 zprop_desc_t *pd = &prop_table[prop];
1009 VERIFY3U(0, ==, zprop_load_one(table, pd->pd_name,
1010 NULL, NULL, pd));
1022 zprop_desc_t *pd;
1027 pd = zfs_alloc(table->zpt_libzfs, sizeof (zprop_desc_t));
1028 pd->pd_propnum = ZPROP_INVAL;
1030 pd->pd_types = zfs_xprop_types(owner, inheritable);
1035 if (pd->pd_types == 0 || (pd->pd_types & ~types) != 0) {
1036 free(pd);
1040 pd->pd_attr = (inheritable ? PROP_INHERIT : PROP_DEFAULT);
1041 pd->pd_values = zfs_strdup(table->zpt_libzfs,
1043 pd->pd_visible = xprop_decode_visible(xprop);
1044 pd->pd_rightalign = xprop_decode_rightalign(xprop);
1047 pd->pd_proptype = PROP_TYPE_INDEX;
1048 pd->pd_numdefault = xprop_decode_boolean_default(xprop);
1049 pd->pd_table = boolean_table;
1053 pd->pd_proptype = PROP_TYPE_STRING;
1055 pd->pd_strdefault = zfs_strdup(table->zpt_libzfs, strdefault);
1058 *pdp = pd;
1070 zprop_desc_t *pd;
1073 err = zprop_desc_alloc(table, owner, pair, types, &pd);
1077 err = zprop_load_one(table, propname, owner, pair, pd);
1085 zprop_desc_free(pd);