Q_XGETQUOTA(2const)
π Q_XGETQUOTA β get quota limits for an XFS filesystem
okay bestie, welcome to Q_XGETQUOTA, a little constant from the (2const) manual-page corner of the universe π she's not a whole function, she's the type you hand to the quotactl girlies so they know exactly which quota-flavored move you're making. let's get into it π
πΈ NAME
Q_XGETQUOTA β get quota limits for an XFS filesystem β¨
π LIBRARY
Standard C library (libc, -lc) π
like, she's right there in libc, no cap.
π¦ SYNOPSIS
#include <xfs/xqm.h> /* See quotactl(2) */
#include <sys/quota.h>
int quotactl(QCMD(Q_XGETQUOTA, type), const char *_Nullable special,
int id, caddr_t addr);
#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_XGETQUOTA, type),
int id, struct fs_disk_quota *addr);
two whole vibes: the classic quotactl(2) path, or the fd-based quotactl_fd(2) path via syscall(2). pick your fighter π«Ά
π DESCRIPTION
Get disk quota limits and current usage for user id. periodt. π
The addr argument is a pointer to an fs_disk_quota(2type) structure. that's where the tea gets poured π
Unprivileged users may retrieve only their own quotas; a privileged user (CAP_SYS_ADMIN) may retrieve the quotas of any user. so like β if you don't have the crown, you only get to peek at your own stats, sorry babe ππ
β¨ RETURN VALUE
See quotactl(2).
π ERRORS
See quotactl(2).
π STANDARDS
Linux.
β HISTORY
Linux.
π SEE ALSO
ngl the return value and errors sections are literally just "go read quotactl(2)" and honestly? iconic. she's outsourcing the drama π go read the main page, bestie, the details live there.
and that's the whole page, fr fr β this was Linux man-pages 6.20, dated 2026-06-05, aka the Q_XGETQUOTA(2const) era. mwah π slay, stay quotalicious, and go check your limits π¦π
π¦ 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