Documentation
¶
Overview ¶
Package fsquota provides a simplified interface to interact with Linux's filesystem qouta API. It only supports setting quotas on directories, not groups or users. Quotas need to be already enabled on the filesystem to be able to use them using this package. See the quotactl package if you intend to use this on a filesystem where quotas need to be enabled manually.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetQuota ¶
SetQuota sets the quota of bytes and/or inodes in a given path. To not set a limit, set the corresponding argument to zero. Setting both arguments to zero removes the quota entirely. This function can only be called on an empty directory. It can't be used to create a quota below a directory which already has a quota since Linux doesn't offer hierarchical quotas.