int quotactl (int cmd, const char *especial, int id , caddr_t direc);
_syscall4(int, quotactl, int, cmd, const char *, especial , int, id, caddr_t, direc);
Description: The system of quotas defines for each user or group a soft limit and a hard limit limiting the amount of disc space that can be used in a system of files given. The hard limit cannot be transferred. The soft limit can be transferred, but it will be let know of it. Item more, the user cannot be over the soft limit beyond one week (predetermined time) every time: after this period the soft limit account like the duro.
The call to the system quotactl manipulates these quotas. Its first argument is of form QCMD (subcmd, type) where type is one of USRQUOTA or GRPQUOTA (for quotas of user and group, respectively), and subcmd is described more down.
The second special argument is the special device of blocks to which these quotas are applied. It must be mounted.
The third argument you go is the identifier of the user or group to who these quotas are applied (when he is excellent).
The fourth argument direc is the direction of a structure of data, following the order.
Subcmd is one of
It activates the quotas. The argument direc is the way of the file that contains the quotas for the system of files.
It deactivates the quotas.
It obtains the limits and the present use of the disc space. The argument direc is a leader to a structure dqblk (defined in <sys/quota.h>).
It establishes the limits and the present use; direc is like before.
It establishes the limits; direc is like before.
It establishes the use.
It synchronizes the disc copy of the quotas of a system of files.
It collects picked up statistical data.
Related: quota, getrlimit, quotacheck, quotaon, ulimit