quota.2

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 166 行

2
166
字号
.\" SCCSID: @(#)quota.2	8.1	9/11/90.TH quota 2.SH Namequota \- manipulate disk quotas.SH Syntax.nf.B #include <sys/types.h>.B #include <sys/param.h>.B #include <sys/quota.h>.PP.B quota(cmd, uid, arg, addr).B int cmd, uid, arg;.B caddr_t addr;.fi.SH Description.NXR "quota system call".NXAM "quota system call" "quotacheck command".NXR "disk quota" "manipulating"The.PN quotacall manipulates disk quotas for file systemsthat have had quotas enabled with .PN setquota .The.I cmdparameter indicates a command in the following list that is applied tothe user ID.IR uid .The.I argparameter is a command specific argument and.I addris the address of an optional, command specific data structure,which is copied in or out of the system.  The interpretation of.I argand.I addris given with each command in the list that follows:.NXR "quota system call" "command list".TPQ_SETDLIMSet disk quota limits and current usage for the user with ID.IR uid .The.I argparameter is a major-minor device indicating a particular file system.The.I addrparameter is a pointer to a struct dqblk structure,defined in <sys/quota.h>.Only the superuser can issue this call.  .TPQ_GETDLIMGet disk quota limits and current use for the user with ID.IR uid .The remaining parameters are identical to the Q_SETDLIM commandparameters..TPQ_SETDUSESet disk use limits for the user with ID.IR uid .The.I argparameter is a major-minor device indicating a particular file system.The.I addris a pointer to a structdqusage structure, defined in <sys/quota.h>.Only the superuser can issue this call..TPQ_SYNCUpdate the on-disk copy of quota uses.The.IR uid ,.IR arg ,and.I addr parameters are ignored..TPQ_SETUIDChange the calling process's quota limits to those of theuser with ID.IR uid .The .I argand.I addrparameters are ignored.  Only the superuser can issue this call..TPQ_SETWARNAlter the disk usage warning limits for the user with ID.IR uid .The.I argis a major-minor device indicating a particular file system.The.I addrparameter is a pointer to a struct dqwarn structure, which is defined in <sys/quota.h>.Only the superuse can issue this call..TPQ_DOWARNWarn the user with user ID.I uidabout excessive disk use.This call causes the system to check its current disk useinformation and print a message on the terminal ofthe caller for each file system on which the user is over quota.If the.I argparameter is specified as NODEV, all file systems that havedisk quotas are checked.  Otherwise, .I argindicates a specific major-minor device to be checked.Only the superuser can issue this call..SH Return ValuesA successful call returns 0 and, possibly, moreinformation specific to the command specified in the .I cmdparameter; when an error occurs, the value \-1is returned and the global variable.I errnois set to indicate the reason..SH Diagnostics.NXR "quota system call" "diagnostics"A.I quotacall fails when one of the following occurs:.TP 15[EINVAL]The kernel has not been compiled with the QUOTA option..TP 15[EINVAL]The.I cmdparameter is invalid..TP 15[ESRCH]No disk quota is found for the indicated user..TP 15[EPERM]Only the superuser can issue the call and the caller is not thesuperuser..TP 15[ENODEV]The.I argparameter is being interpreted as a major-minor device,and it indicates an unmounted file system..TP 15[EFAULT]An invalid.I addrparameter is supplied; the associated structure could not be copied in or outof the kernel..TP 15[EUSERS]The quota table is full..SH See Also.MS setquota 2, .MS quotacheck 8, .MS quotaon 8.br"Disk Quotas in a UNIX Environment",.I ULTRIX Supplementary Documents, Volume 3:System Manager

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?