HP-UX Reference (11i v2 07/12) - 2 System Calls (vol 5)

q
quotactl(2) quotactl(2)
[EINVAL] The parameters cmd and/or uid are invalid.
[ESRCH] No disc quota is found for the indicated user or quotas have not been turned on for
this file system.
[EPERM] The call is privileged and the calling process does not have appropriate privileges.
[ENODEV] The parameter special contains a type of file system that does not support quotas.
Currently, quotas are supported on HFS and VxFS file systems.
[ENOTBLK] The parameter special is not a block device.
[EACCES] (
Q_QUOTAON) The quota file pointed to by addr exists but is either not a regular file
or is not on the file system pointed to by special.
[EBUSY]
Q_QUOTAON attempted while another Q_QUOTAON or Q_QUOTAOFF
is in pro-
gress.
[ENOENT] The file specified by special or addr does not exist.
[EFAULT] The addr or special parameter points to an invalid address. Reliable detection of this
error is implementation-dependent.
[EDQUOT] User’s disk quota block limit has been reached for this file system.
[EOVERFLOW]
64-bit values will overflow 32-bit fields, either in the
dqblk struct in the user level
(for Q_GETQUOTA) or in a 32-bit file system in the kernal (for Q_SETQUOTA64 and
Q_SETQLIM64 ).
WARNINGS
The quotactl() system call is incompatible with the 4.2/4.3 BSD implementation of Melbourne quotas
which uses a different system call interface and on-disk data structure.
Use Q_GETQUOTA64 , Q_SETQUOTA64 , and Q_SETQLIM64 commands for 64-bit field values.
AUTHOR
quotactl() was developed by HP and Sun Microsystems, Inc.
SEE ALSO
quota(1), edquota(1M), rquotad(1M), quotacheck(1M), quotaon(1M), mount(2), quota(5).
HP-UX 11i Version 2: December 2007 Update 2 Hewlett-Packard Company 311