Lines Matching defs:prop

48 dodefault(zfs_prop_t prop, int intsz, int numints, void *buf)
55 if (prop == ZPROP_INVAL ||
56 (zfs_prop_readonly(prop) && !zfs_prop_setonce(prop)))
59 if (zfs_prop_get_type(prop) == PROP_TYPE_STRING) {
62 (void) strlcpy(buf, zfs_prop_default_string(prop),
68 *(uint64_t *)buf = zfs_prop_default_numeric(prop);
75 dsl_prop_known_index(zfs_prop_t prop, uint64_t value)
78 if (prop != ZPROP_CONT && prop != ZPROP_INVAL &&
79 zfs_prop_get_type(prop) == PROP_TYPE_INDEX)
80 return (!zfs_prop_index_to_string(prop, value, &str));
92 zfs_prop_t prop;
104 prop = zfs_name_to_prop(propname);
105 inheritable = (prop == ZPROP_USERPROP || zfs_prop_inheritable(prop));
126 if (err == 0 && dsl_prop_known_index(prop,
181 err = dodefault(prop, intsz, numints, buf);
194 zfs_prop_t prop = zfs_name_to_prop(propname);
199 inheritable = (prop == ZPROP_USERPROP || zfs_prop_inheritable(prop));
307 * Return 0 on success, errno if the prop is not an integer value.
398 zfs_prop_t prop = zfs_name_to_prop(propname);
405 switch (prop) {
622 * If the prop is set here, then this change is not
683 * existing prop key. So that the propname$iuv key is ignored by the older zfs
684 * versions and the default property value from the existing prop key is
693 zfs_prop_t prop = zfs_name_to_prop(propname);
695 switch (prop) {
712 uint64_t val = zfs_prop_default_numeric(prop);
1033 * All-or-nothing; if any prop can't be set, nothing will be modified.
1075 zfs_prop_t prop;
1139 prop = zfs_name_to_prop(propname);
1141 if (dsl_prop_known_index(prop,
1152 prop = zfs_name_to_prop(propname);
1156 prop != ZPROP_USERPROP && !zfs_prop_inheritable(prop))
1160 if ((flags & DSL_PROP_GET_SNAPSHOT) && prop != ZPROP_USERPROP &&
1161 !zfs_prop_valid_for_type(prop, ZFS_TYPE_SNAPSHOT, B_FALSE))
1328 dsl_prop_nvlist_add_uint64(nvlist_t *nv, zfs_prop_t prop, uint64_t value)
1331 const char *propname = zfs_prop_to_name(prop);
1342 if (dodefault(prop, 8, 1, &default_value) == 0 &&
1351 dsl_prop_nvlist_add_string(nvlist_t *nv, zfs_prop_t prop, const char *value)
1354 const char *propname = zfs_prop_to_name(prop);