Copyright (C) 2000-2012 |
Manpages QUOTACTLSection: Linux Programmer's Manual (2)Updated: 1996-04-14 Index Return to Main Contents NAMEquotactl - manipulate disk quotasSYNOPSIS#include <sys/types.h>#include <sys/quota.h> int quotactl (int cmd, const char *special, int id , caddr_t addr); #include <linux/unistd.h> _syscall4(int, quotactl, int, cmd, const char *, special , int, id, caddr_t, addr); DESCRIPTIONThe quota system defines for each user and/or group a soft limit and a hard limit bounding the amount of disk space that can be used on a given file system. The hard limit cannot be crossed. The soft limit can be crossed, but warnings will ensue. Moreover, the user cannot be above the soft limit for more than one week (by default) at a time: after this week the soft limit counts as hard limit.The quotactl system call manipulates these quota. Its first argument is of the form QCMD(subcmd,type) where type is either USRQUOTA or GRPQUOTA (for user quota and group quota, respectively), and subcmd is described below. The second argument special is the block special device these quota apply to. It must be mounted. The third argument id is the user or group id these quota apply to (when relevant). The fourth argument addr is the address of a data structure, depending on the command. The subcmd is one of
RETURN VALUEOn success, quotactl returns 0. On error, -1 is returned, and errno is set appropriately.ERRORS
CONFORMING TOBSDSEE ALSOquota(1), getrlimit(2), setrlimit(2), ulimit(2), quotacheck(8), quotaon(8)
IndexThis document was created by man2html, using the manual pages. Time: 13:40:44 GMT, December 14, 2024 |