Lines Matching refs:propname

74 static int userquota_propname_decode(const char *propname, boolean_t zoned,
1054 const char *propname = nvpair_name(elem);
1056 prop = zfs_name_to_prop(propname);
1057 if (prop == ZPROP_USERPROP && zfs_prop_user(propname)) {
1064 "'%s' must be a string"), propname);
1072 propname);
1078 if (nvlist_add_string(ret, propname, strval) != 0) {
1096 if (prop == ZPROP_USERPROP && zfs_prop_userquota(propname)) {
1104 if (userquota_propname_decode(propname, zoned,
1109 propname);
1122 propname);
1149 "'%s' must be a number"), propname);
1179 zfs_prop_written(propname)) {
1182 propname);
1189 "invalid property '%s'"), propname);
1197 "apply to datasets of this type"), propname);
1207 propname);
1256 "to %s"), propname, buf);
1289 "device in the pool\n"), propname);
1299 propname, (unsigned long long)intval, buf);
1379 "'none', or 'legacy'"), propname);
1385 propname);
1424 propname);
1432 "a non-global zone"), propname);
1444 "'zoned' property is set"), propname);
1469 "options"), propname);
1549 propname, buf);
1558 propname);
1754 zfs_prop_set(zfs_handle_t *zhp, const char *propname, const char *propval)
1766 nvlist_add_string(nvl, propname, propval) != 0) {
1978 zfs_prop_inherit(zfs_handle_t *zhp, const char *propname, boolean_t received)
1988 "cannot inherit %s for '%s'"), propname, zhp->zfs_name);
1991 if ((prop = zfs_name_to_prop(propname)) == ZPROP_USERPROP) {
1996 if (!zfs_prop_user(propname)) {
2003 (void) strlcpy(zc.zc_value, propname, sizeof (zc.zc_value));
2030 propname = zfs_prop_to_name(prop);
2032 (void) strlcpy(zc.zc_value, propname, sizeof (zc.zc_value));
2422 zfs_prop_get_recvd(zfs_handle_t *zhp, const char *propname, char *propbuf,
2432 prop = zfs_name_to_prop(propname);
2436 if (!nvlist_exists(zhp->zfs_recvd_props, propname))
2446 propname, &propval) != 0)
3158 * convert the propname into parameters needed by kernel
3167 userquota_propname_decode(const char *propname, boolean_t zoned,
3182 if (strncmp(propname, zfs_userquota_prop_prefixes[type],
3200 cp = strchr(propname, '@') + 1;
3285 zfs_prop_get_userquota_common(zfs_handle_t *zhp, const char *propname,
3293 err = userquota_propname_decode(propname,
3309 zfs_prop_get_userquota_int(zfs_handle_t *zhp, const char *propname,
3314 return (zfs_prop_get_userquota_common(zhp, propname, propvalue,
3319 zfs_prop_get_userquota(zfs_handle_t *zhp, const char *propname,
3326 err = zfs_prop_get_userquota_common(zhp, propname, &propvalue,
3352 * propname must start with "written@" or "written#".
3355 zfs_prop_get_written_int(zfs_handle_t *zhp, const char *propname,
3364 assert(zfs_prop_written(propname));
3365 snapname = propname + strlen("written@");
3390 zfs_prop_get_written(zfs_handle_t *zhp, const char *propname,
3396 err = zfs_prop_get_written_int(zhp, propname, &propvalue);