Q_XQUOTAOFF(2const)
π Q_XQUOTAOFF(2const) β bestie, it's time to turn the quotas OFF
okay so picture this: you're the queen of an XFS filesystem π and you've decided the quota era is over. This little page lives in the 2const section of the Linux manual, and it's the whole vibe for telling your filesystem "no more quotas, we're done here."
β¨ NAME β¨
Q_XQUOTAOFF β turn off quotas for an XFS filesystem π«π
π LIBRARY π
Standard C library (libc, -lc) β yes the normal one, no weird add-ons, slay.
πΈ SYNOPSIS πΈ
Two ways to do the thing, bestie. Pick your fighter:
The quotactl(2) route:
#include <xfs/xqm.h> /* See quotactl(2) */
#include <sys/quota.h>
int quotactl(QCMD(Q_XQUOTAOFF, type), const char *_Nullable special, 0,
caddr_t addr);
The quotactl_fd(2) route (syscall girlies rise up):
#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_XQUOTAOFF, type), 0,
unsigned int *addr);
π¦ DESCRIPTION π¦
Turn off quotas for an XFS filesystem. That's it, that's the job. π
But here's the tea: same as with Q_XQUOTAON(2const), XFS filesystems are not here for your little plain integer games β they expect a pointer to an unsigned int that tells them whether quota accounting and/or limit enforcement need to be turned off. And which flags go in that unsigned int? The exact same flags as for Q_XQUOTAON(2const). iykyk π
β οΈ This operation requires privilege β specifically CAP_SYS_ADMIN. no cap, you literally cannot skip this one, bestie π
π RETURN VALUE π
See quotactl(2). (not me redirecting you, but fr fr that's where it's at π«Ά)
π ERRORS π
See quotactl(2). same energy, same page, go look π
π STANDARDS π
Linux. that's it. the whole row. iconic. π§
β HISTORY β
Linux. periodt. π
π₯ SEE ALSO π₯
and that's the whole page, bestie!! this was Linux man-pages 6.20, dated 2026-06-05 β so if you're reading this later, that's the lore π«Άβ¨ go forth and turn those quotas off responsibly π
π¦ 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