Lines Matching defs:prop
948 zfs_prop_t prop;
966 prop = zfs_name_to_prop(propname);
967 if (prop == ZPROP_INVAL && zfs_prop_user(propname)) {
1006 if (prop == ZPROP_INVAL && zfs_prop_userquota(propname)) {
1060 * Encode the prop name as
1076 } else if (prop == ZPROP_INVAL && zfs_prop_written(propname)) {
1084 if (prop == ZPROP_INVAL) {
1091 if (!zfs_prop_valid_for_type(prop, type)) {
1099 if (zfs_prop_readonly(prop) &&
1100 (!zfs_prop_setonce(prop) || zhp != NULL)) {
1108 if (zprop_parse_value(hdl, elem, prop, type, ret,
1115 switch (prop) {
1147 if (prop == ZFS_PROP_VOLBLOCKSIZE)
1200 (void) nvlist_remove(ret, zfs_prop_to_name(prop),
1202 verify(nvlist_add_string(ret, zfs_prop_to_name(prop),
1281 } else if (prop == ZFS_PROP_SHARENFS ||
1282 prop == ZFS_PROP_SHARESMB) {
1307 if ((prop == ZFS_PROP_SHARENFS ||
1308 prop == ZFS_PROP_SHARESMB) &&
1313 if (prop == ZFS_PROP_SHARESMB)
1388 switch (prop) {
1503 zfs_setprop_error(libzfs_handle_t *hdl, zfs_prop_t prop, int err,
1514 switch (prop) {
1558 if (prop == ZFS_PROP_COMPRESSION ||
1559 prop == ZFS_PROP_RECORDSIZE) {
1564 } else if (prop == ZFS_PROP_CHECKSUM ||
1565 prop == ZFS_PROP_DEDUP) {
1576 if (prop == ZPROP_INVAL) {
1588 if (prop == ZFS_PROP_VOLSIZE) {
1684 zfs_prop_t prop = zfs_name_to_prop(nvpair_name(elem));
1692 if (prop != ZFS_PROP_CANMOUNT ||
1695 cls[cl_idx] = changelist_gather(zhp, prop, 0, 0);
1700 if (prop == ZFS_PROP_MOUNTPOINT &&
1736 zfs_prop_t prop = zfs_name_to_prop(nvpair_name(elem));
1737 zfs_setprop_error(hdl, prop, errno, errbuf);
1801 zfs_prop_t prop;
1807 if ((prop = zfs_name_to_prop(propname)) == ZPROP_INVAL) {
1830 if (zfs_prop_readonly(prop))
1833 if (!zfs_prop_inheritable(prop) && !received)
1839 if (!zfs_prop_valid_for_type(prop, zhp->zfs_type))
1845 propname = zfs_prop_to_name(prop);
1849 if (prop == ZFS_PROP_MOUNTPOINT && getzoneid() == GLOBAL_ZONEID &&
1859 if ((cl = changelist_gather(zhp, prop, 0, 0)) == NULL)
1862 if (prop == ZFS_PROP_MOUNTPOINT && changelist_haszonedchild(cl)) {
1896 getprop_uint64(zfs_handle_t *zhp, zfs_prop_t prop, char **source)
1903 zfs_prop_to_name(prop), &nv) == 0) {
1908 zhp->zfs_props_table[prop] == B_TRUE);
1909 value = zfs_prop_default_numeric(prop);
1917 getprop_string(zfs_handle_t *zhp, zfs_prop_t prop, char **source)
1924 zfs_prop_to_name(prop), &nv) == 0) {
1929 zhp->zfs_props_table[prop] == B_TRUE);
1930 value = zfs_prop_default_string(prop);
1967 get_numeric_property(zfs_handle_t *zhp, zfs_prop_t prop, zprop_source_t *src,
1979 switch (prop) {
2025 (mntopt_on != NULL || prop == ZFS_PROP_MOUNTED)) {
2044 switch (prop) {
2052 *val = getprop_uint64(zhp, prop, source);
2078 *val = getprop_uint64(zhp, prop, source);
2098 if (!zfs_prop_valid_for_type(prop, zhp->zfs_head_type) ||
2107 nvlist_lookup_uint64(zplprops, zfs_prop_to_name(prop),
2121 switch (zfs_prop_get_type(prop)) {
2124 *val = getprop_uint64(zhp, prop, source);
2132 if (zfs_prop_readonly(prop) &&
2133 !zfs_prop_setonce(prop) &&
2183 zfs_prop_t prop;
2190 prop = zfs_name_to_prop(propname);
2192 if (prop != ZPROP_INVAL) {
2197 err = zfs_prop_get(zhp, prop, propbuf, proplen,
2333 zfs_prop_get(zfs_handle_t *zhp, zfs_prop_t prop, char *propbuf, size_t proplen,
2345 if (!zfs_prop_valid_for_type(prop, zhp->zfs_type))
2348 if (received && zfs_prop_readonly(prop))
2354 switch (prop) {
2361 val = getprop_uint64(zhp, prop, &source);
2385 str = getprop_string(zhp, prop, &source);
2443 str = getprop_string(zhp, prop, &source);
2459 if (get_numeric_property(zhp, prop, src, &source, &val) != 0)
2487 if (get_numeric_property(zhp, prop, src, &source, &val) != 0)
2508 if (get_numeric_property(zhp, prop, src, &source, &val) != 0)
2566 getprop_string(zhp, prop, &source), proplen);
2604 if (get_numeric_property(zhp, prop, src, &source, &val) != 0)
2610 switch (zfs_prop_get_type(prop)) {
2612 if (get_numeric_property(zhp, prop, src,
2623 str = getprop_string(zhp, prop, &source);
2630 if (get_numeric_property(zhp, prop, src,
2633 if (zfs_prop_index_to_string(prop, val, &strval) != 0)
2654 zfs_prop_get_int(zfs_handle_t *zhp, zfs_prop_t prop)
2659 (void) get_numeric_property(zhp, prop, NULL, &source, &val);
2665 zfs_prop_set_int(zfs_handle_t *zhp, zfs_prop_t prop, uint64_t val)
2670 return (zfs_prop_set(zhp, zfs_prop_to_name(prop), buf));
2677 zfs_prop_get_numeric(zfs_handle_t *zhp, zfs_prop_t prop, uint64_t *value,
2685 if (!zfs_prop_valid_for_type(prop, zhp->zfs_type)) {
2688 zfs_prop_to_name(prop)));
2694 if (get_numeric_property(zhp, prop, src, &source, value) != 0)
3304 /* open zpool handle for prop validation */
3730 * get pool handle for prop validation. assumes all snaps are in the