Q_XGETQUOTA(2const)

πŸ“¦
version 6.20 Β· 2 versions
, in arch rolling, nixpkgs unstable

πŸ‘‘ 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms