Lines Matching defs:prop
46 dodefault(zfs_prop_t prop, int intsz, int numints, void *buf)
53 if (prop == ZPROP_INVAL ||
54 (zfs_prop_readonly(prop) && !zfs_prop_setonce(prop)))
57 if (zfs_prop_get_type(prop) == PROP_TYPE_STRING) {
60 (void) strncpy(buf, zfs_prop_default_string(prop),
66 *(uint64_t *)buf = zfs_prop_default_numeric(prop);
79 zfs_prop_t prop;
90 prop = zfs_name_to_prop(propname);
91 inheritable = (prop == ZPROP_INVAL || zfs_prop_inheritable(prop));
154 err = dodefault(prop, intsz, numints, buf);
166 zfs_prop_t prop = zfs_name_to_prop(propname);
171 inheritable = (prop == ZPROP_INVAL || zfs_prop_inheritable(prop));
279 * Return 0 on success, errno if the prop is not an integer value.
370 zfs_prop_t prop = zfs_name_to_prop(propname);
377 switch (prop) {
594 * If the prop is set here, then this change is not
954 * All-or-nothing; if any prop can't be set, nothing will be modified.
996 zfs_prop_t prop;
1055 prop = zfs_name_to_prop(propname);
1058 if ((flags & DSL_PROP_GET_INHERITING) && prop != ZPROP_INVAL &&
1059 !zfs_prop_inheritable(prop))
1063 if ((flags & DSL_PROP_GET_SNAPSHOT) && prop != ZPROP_INVAL &&
1064 !zfs_prop_valid_for_type(prop, ZFS_TYPE_SNAPSHOT, B_FALSE))
1230 dsl_prop_nvlist_add_uint64(nvlist_t *nv, zfs_prop_t prop, uint64_t value)
1233 const char *propname = zfs_prop_to_name(prop);
1244 if (dodefault(prop, 8, 1, &default_value) == 0 &&
1253 dsl_prop_nvlist_add_string(nvlist_t *nv, zfs_prop_t prop, const char *value)
1256 const char *propname = zfs_prop_to_name(prop);