Lines Matching refs:propname

65 static int userquota_propname_decode(const char *propname, boolean_t zoned,
916 const char *propname = nvpair_name(elem);
918 prop = zfs_name_to_prop(propname);
919 if (prop == ZPROP_INVAL && zfs_prop_user(propname)) {
926 "'%s' must be a string"), propname);
934 propname);
940 if (nvlist_add_string(ret, propname, strval) != 0) {
958 if (prop == ZPROP_INVAL && zfs_prop_userquota(propname)) {
965 if (userquota_propname_decode(propname, zoned,
970 propname);
979 propname);
1006 "'%s' must be a number"), propname);
1028 } else if (prop == ZPROP_INVAL && zfs_prop_written(propname)) {
1031 propname);
1038 "invalid property '%s'"), propname);
1046 "apply to datasets of this type"), propname);
1055 propname);
1109 "to %uKB"), propname, maxbs >> 10);
1189 "'none', or 'legacy'"), propname);
1195 propname);
1228 propname);
1236 "a non-global zone"), propname);
1248 "'zoned' property is set"), propname);
1289 propname);
1305 "options"), propname);
1340 "volume size"), propname);
1354 propname, buf);
1363 propname);
1547 zfs_prop_set(zfs_handle_t *zhp, const char *propname, const char *propval)
1559 nvlist_add_string(nvl, propname, propval) != 0) {
1753 zfs_prop_inherit(zfs_handle_t *zhp, const char *propname, boolean_t received)
1763 "cannot inherit %s for '%s'"), propname, zhp->zfs_name);
1766 if ((prop = zfs_name_to_prop(propname)) == ZPROP_INVAL) {
1771 if (!zfs_prop_user(propname)) {
1778 (void) strlcpy(zc.zc_value, propname, sizeof (zc.zc_value));
1804 propname = zfs_prop_to_name(prop);
1806 (void) strlcpy(zc.zc_value, propname, sizeof (zc.zc_value));
2132 zfs_prop_get_recvd(zfs_handle_t *zhp, const char *propname, char *propbuf,
2142 prop = zfs_name_to_prop(propname);
2146 if (!nvlist_exists(zhp->zfs_recvd_props, propname))
2156 propname, &propval) != 0)
2694 * convert the propname into parameters needed by kernel
2699 userquota_propname_decode(const char *propname, boolean_t zoned,
2711 if (strncmp(propname, zfs_userquota_prop_prefixes[type],
2722 cp = strchr(propname, '@') + 1;
2839 zfs_prop_get_userquota_common(zfs_handle_t *zhp, const char *propname,
2847 err = userquota_propname_decode(propname,
2863 zfs_prop_get_userquota_int(zfs_handle_t *zhp, const char *propname,
2868 return (zfs_prop_get_userquota_common(zhp, propname, propvalue,
2873 zfs_prop_get_userquota(zfs_handle_t *zhp, const char *propname,
2880 err = zfs_prop_get_userquota_common(zhp, propname, &propvalue,
2898 zfs_prop_get_written_int(zfs_handle_t *zhp, const char *propname,
2907 snapname = strchr(propname, '@') + 1;
2932 zfs_prop_get_written(zfs_handle_t *zhp, const char *propname,
2938 err = zfs_prop_get_written_int(zhp, propname, &propvalue);