Q_XSETQLIM(2const)
β¨ Q_XSETQLIM π β¨
okay bestie, welcome to the Q_XSETQLIM(2const) page β yes that's a const page, it's a lil baby slice of the big quotactl(2) story, but it's OUR slice and it's iconic.
πΈ NAME πΈ
Q_XSETQLIM β set quota limits. yeah. that's the whole vibe. you're the main character setting the limits, not living by them π
π LIBRARY π
Standard C library (libc, -lc). the classic. the OG. she's been here forever and she's not leaving π«Ά
π SYNOPSIS π
okay so there's two ways to slide into this, depending on which function you're using. look:
#include <xfs/xqm.h> /* See quotactl(2) */
#include <sys/quota.h>
int quotactl(QCMD(Q_XSETQLIM, type), const char *_Nullable special,
int id, caddr_t addr);
and then the fd-flavoured one:
#include <xfs/xqm.h> /* See quotactl_fd(2) */
#include <sys/syscall.h> /* Definition of SYS_* constants */
#include <unistd.h>
int syscall(SYS_quotactl_fd, int fd, QCMD(Q_XSETQLIM, type),
int id, struct fs_disk_quota *addr);
note: that #include <xfs/xqm.h> is doing a whole lot of heavy lifting β go read quotactl(2) and quotactl_fd(2) for the deets, iykyk π¦
π₯ DESCRIPTION π₯
Set disk quota limits for user id. literally what it says. you're the one in charge now π
the addr argument is a pointer to an fs_disk_quota(2type) structure β so that's where all your actual limit numbers live, bestie.
β οΈ heads up: this operation requires privilege (CAP_SYS_ADMIN). no cap, no limits. the kernel does NOT care how cute your struct is π
β RETURN VALUE β
See quotactl(2). (all the return-value lore lives over there, go peek π)
π ERRORS π
See quotactl(2). (same deal, the error tea is all on that page π)
π STANDARDS π
Linux. that's it. that's the standard. home turf π
π§ HISTORY π§
Linux. yep. also Linux. she's been Linux the whole time β¨
π SEE ALSO π
and that's the whole page, bestie π
go forth and enforce some limits responsibly (or don't, it needs CAP_SYS_ADMIN anyway π).
this adorable lil rewrite is brought to you by Linux man-pages 6.20, dated 2026-06-05 β mwah, stan the man-pages team π«Άπ
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: Linux-man-pages-copyleft
- Copyright 1996, Andries E. Brouwer <aeb@cwi.nl>
- Copyright 2010, Jan Kara <jack@suse.cz>
- Copyright 2010, Michael Kerrisk <mtk.manpages@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms