[][src]Module nix::sys::quota

Set and configure disk quotas for users, groups, or projects.

Examples

Enabling and setting a quota:

quotactl_on(QuotaType::USRQUOTA, "/dev/sda1", QuotaFmt::QFMT_VFS_V1, "aquota.user");
let mut dqblk: Dqblk = Default::default();
dqblk.set_blocks_hard_limit(10000);
dqblk.set_blocks_soft_limit(8000);
quotactl_set(QuotaType::USRQUOTA, "/dev/sda1", 50, &dqblk, QuotaValidFlags::QIF_BLIMITS);

Structs

Dqblk

Wrapper type for if_dqblk

QuotaValidFlags

Indicates the quota fields that are valid to read from.

Enums

QuotaFmt

The type of quota format to use.

QuotaType

The scope of the quota.

Functions

quotactl_get

Get disk quota limits and current usage for the given user/group id.

quotactl_off

Disable disk quotas for a block device.

quotactl_on

Turn on disk quotas for a block device.

quotactl_set

Configure quota values for the specified fields for a given user/group id.

quotactl_sync

Update the on-disk copy of quota usages for a filesystem.