Reference

Q_XGETQUOTA(2const)

get quota limits for an XFS filesystem

NAME

Q_XGETQUOTA - get quota limits for an XFS filesystem

LIBRARY

Standard C library (libc, -lc)

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

DESCRIPTION

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.

SEE ALSO

quotactl(2), quotactl_fd(2), Q_XGETNEXTQUOTA(2const), fs_disk_quota(2type)