Deleted Added
full compact
22c22
< * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
---
> * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
45a46,53
> /* Note this is indexed by zfs_userquota_prop_t, keep the order the same */
> const char *zfs_userquota_prop_prefixes[] = {
> "userused@",
> "userquota@",
> "groupused@",
> "groupquota@"
> };
>
135a144
> { "4", 4 },
221c230
< "1 | 2 | 3 | current", "VERSION", version_table);
---
> "1 | 2 | 3 | 4 | current", "VERSION", version_table);
309a319,320
> register_hidden(ZFS_PROP_USERACCOUNTING, "useraccounting",
> PROP_TYPE_NUMBER, PROP_READONLY, ZFS_TYPE_DATASET, NULL);
333d343
<
370a381,400
> * Returns true if this is a valid userspace-type property (one with a '@').
> * Note that after the @, any character is valid (eg, another @, for SID
> * user@domain).
> */
> boolean_t
> zfs_prop_userquota(const char *name)
> {
> zfs_userquota_prop_t prop;
>
> for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) {
> if (strncmp(name, zfs_userquota_prop_prefixes[prop],
> strlen(zfs_userquota_prop_prefixes[prop])) == 0) {
> return (B_TRUE);
> }
> }
>
> return (B_FALSE);
> }
>
> /*