Q_XGETQUOTA(2const)

Q_XGETQUOTA2const

Get quota limits for an xfs filesystem

Usage

#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);

Library

Standard C library (libc, -lc)

Overview

Get disk quota limits and current usage for user id.

The addr argument is a pointer to an fs_disk_quota(2type) structure.

Unprivileged users may retrieve only their own quotas; a privileged user (CAP_SYS_ADMIN) may retrieve the quotas of any user.

Return value

See quotactl(2).

Errors

See quotactl(2).

Standards

Linux.

History

Linux.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.