Lines Matching refs:propname
71 static int userquota_propname_decode(const char *propname, boolean_t zoned,
1027 const char *propname = nvpair_name(elem);
1029 prop = zfs_name_to_prop(propname);
1030 if (prop == ZPROP_INVAL && zfs_prop_user(propname)) {
1037 "'%s' must be a string"), propname);
1045 propname);
1051 if (nvlist_add_string(ret, propname, strval) != 0) {
1069 if (prop == ZPROP_INVAL && zfs_prop_userquota(propname)) {
1077 if (userquota_propname_decode(propname, zoned,
1082 propname);
1095 propname);
1122 "'%s' must be a number"), propname);
1151 } else if (prop == ZPROP_INVAL && zfs_prop_written(propname)) {
1154 propname);
1161 "invalid property '%s'"), propname);
1169 "apply to datasets of this type"), propname);
1179 propname);
1228 "to %s"), propname, buf);
1256 "device in the pool\n"), propname);
1266 propname, (unsigned long long)intval, buf);
1347 "'none', or 'legacy'"), propname);
1353 propname);
1393 propname);
1401 "a non-global zone"), propname);
1413 "'zoned' property is set"), propname);
1437 "options"), propname);
1517 propname, buf);
1526 propname);
1713 zfs_prop_set(zfs_handle_t *zhp, const char *propname, const char *propval)
1725 nvlist_add_string(nvl, propname, propval) != 0) {
1926 zfs_prop_inherit(zfs_handle_t *zhp, const char *propname, boolean_t received)
1936 "cannot inherit %s for '%s'"), propname, zhp->zfs_name);
1939 if ((prop = zfs_name_to_prop(propname)) == ZPROP_INVAL) {
1944 if (!zfs_prop_user(propname)) {
1951 (void) strlcpy(zc.zc_value, propname, sizeof (zc.zc_value));
1978 propname = zfs_prop_to_name(prop);
1980 (void) strlcpy(zc.zc_value, propname, sizeof (zc.zc_value));
2349 zfs_prop_get_recvd(zfs_handle_t *zhp, const char *propname, char *propbuf,
2359 prop = zfs_name_to_prop(propname);
2363 if (!nvlist_exists(zhp->zfs_recvd_props, propname))
2373 propname, &propval) != 0)
3061 * convert the propname into parameters needed by kernel
3070 userquota_propname_decode(const char *propname, boolean_t zoned,
3085 if (strncmp(propname, zfs_userquota_prop_prefixes[type],
3103 cp = strchr(propname, '@') + 1;
3183 zfs_prop_get_userquota_common(zfs_handle_t *zhp, const char *propname,
3191 err = userquota_propname_decode(propname,
3207 zfs_prop_get_userquota_int(zfs_handle_t *zhp, const char *propname,
3212 return (zfs_prop_get_userquota_common(zhp, propname, propvalue,
3217 zfs_prop_get_userquota(zfs_handle_t *zhp, const char *propname,
3224 err = zfs_prop_get_userquota_common(zhp, propname, &propvalue,
3250 * propname must start with "written@" or "written#".
3253 zfs_prop_get_written_int(zfs_handle_t *zhp, const char *propname,
3262 assert(zfs_prop_written(propname));
3263 snapname = propname + strlen("written@");
3288 zfs_prop_get_written(zfs_handle_t *zhp, const char *propname,
3294 err = zfs_prop_get_written_int(zhp, propname, &propvalue);