Q_SETQUOTA(2const) Q_SETQUOTA(2const) NAME Q_SETQUOTA - set quota information for user or group LIBRARY Standard C library (libc, -lc) SYNOPSIS #include int quotactl(QCMD(Q_SETQUOTA, type), const char *_Nullable special, int id, caddr_t addr); #include /* Definition of Q_* constants */ #include /* Definition of SYS_* constants */ #include int syscall(SYS_quotactl_fd, int fd, QCMD(Q_SETQUOTA, type), int id, struct dqblk *addr); DESCRIPTION Set quota information for user or group id, using the information supplied in the dqblk(2type) structure pointed to by addr. The .dqb_valid field of the dqblk(2type) structure indicates which entries in the structure have been set by the caller. This operation requires privilege (CAP_SYS_ADMIN). RETURN VALUE See quotactl(2). ERRORS See quotactl(2). ERANGE The specified limits are out of the range allowed by the quota format. STANDARDS Linux. HISTORY Linux. This operation supersedes the Q_SETQLIM and Q_SETUSE operations in the previous quota interfaces. SEE ALSO quotactl(2), quotactl_fd(2), dqblk(2type) Linux man-pages 6.19 2026-06-05 Q_SETQUOTA(2const)