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

Expand description

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

Wrapper type for if_dqblk

Indicates the quota fields that are valid to read from.

Enums

The type of quota format to use.

The scope of the quota.

Functions

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

Disable disk quotas for a block device.

Turn on disk quotas for a block device.

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

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