📄 setquota.2
字号:
.\" SCCSID: @(#)setquota.2 8.1 9/11/90.TH setquota 2.SH Namesetquota \- enable/disable quotas on a file system.SH Syntax.nf.B setquota(special, file).B char *special, *file;.fi.SH Description.NXR "setquota system call".NXA "setquota system call" "quota system call".NXAM "setquota system call" "quotacheck command".NXAM "setquota system call" "quotaon command".NXR "disk quota" "enabling"Disk quotas are enabled or disabled with the.PN setquotacall. The.I specialindicates a block special device on which amounted file system exists.If.I fileis nonzero, it specifies a file in thatfile system from which to take the quotas. If.I fileis zero, then quotas are disabled on the file system.The quota file must exist; it is normally created with the.PN quotacheckprogram..PPOnly the superuser can turn quotas on or off..SH Return ValuesA zero (0) return value indicates a successful call. A valueof \-1 is returned when an error occurs, and .I errnois set to indicate the reason for failure..SH DiagnosticsThe.PN setquotasystem call fails when one of the following occurs:.TP 15[ENODEV]The.I specialdoes not exist..TP 15[ENOTBLK]The.I specialis not a block device..TP 15[ENXIO]The major device number of .I specialis out of range. (This indicates no device driver existsfor the associated hardware.).TP 15[ENOTDIR]A component of either path prefix is not a directory..TP 15[EROFS]The.I fileresides on a read-only file system..TP 15[EACCES]The.I fileresides on a file system different from.IR special ..TP 15[EACCES]The.I fileis not a plain file..TP 15[EINVAL]Either pathname contains a character with the high-orderbit set..TP 15[EINVAL]The kernel has not been compiled with the QUOTA option..TP 15[ENAMETOOLONG]A component of either pathname exceeded 255 characters,or the entire length of either path name exceeded 1023characters..TP 15[ENOENT]The.I filedoes not exist..TP 15[ELOOP]Too many symbolic links were encountered in translatingeither pathname..TP 15[EPERM]The caller is not the superuser..TP 15[EACCES]Search permission is denied for a component of either pathprefix..TP 15[EIO]An I/O error occurred while reading from or writing to thefile containing the quotas..TP 15[EFAULT]The.I specialor.I pathpoints outside the process's allocated address space..SH See Alsoquota(2), edquota(8), quotacheck(8), quotaon(8), .br"Disk Quotas in a UNIX Environment",.I Supplementary Documents,Vol. III:System Manager
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -