pool.dataset.set_quota ====================== Allow users to set multiple quotas simultaneously by submitting a list of quotas. .. raw:: html
The name of the target ZFS dataset.
Specify an array of quota entries to apply to dataset. The array may contain all supported quota types.
Must contain a maximum of 100
items
The type of quota to apply to the dataset. There are three over-arching types of quotas for ZFS datasets:
1) Dataset quotas and refquotas. If a DATASET
quota type is specified in this API call, then the API acts as a
wrapper for pool.dataset.update
.
2) User and group quotas. These limit the amount of disk space consumed by files that are owned by the specified
users or groups. If the respective "object quota" type is specfied, then the quota limits the number of objects
that may be owned by the specified user or group.
3) Project quotas. These limit the amount of disk space consumed by files that are owned by the specified project.
Project quotas are not yet implemented.
The UID, GID, or name to which the quota applies. If quota_type
is 'DATASET', then id
must be either QUOTA
or REFQUOTA
.
The quota size in bytes. Setting a value of 0
removes the user or group quota.