---
name: "fs_disk_quota"
section: "2type"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/fs_disk_quota"
---

# fs\_disk\_quota(2type)

filesystem disk quota

## NAME

fs\_disk\_quota - filesystem disk quota

## LIBRARY

Standard C library (*libc*)

## SYNOPSIS

```
#include <xfs/xqm.h>
```

```
#define FS_DQUOT_VERSION  1  // fs_disk_quota.d_version
```

\#define XFS\_USER\_QUOTA    (1\<\<0)  // User quota type #define XFS\_PROJ\_QUOTA    (1\<\<1)  // Project quota type #define XFS\_GROUP\_QUOTA   (1\<\<2)  // Group quota type

struct fs\_disk\_quota {\
 	int8\_t    d\_version;\
 	int8\_t    d\_flags;\
 	uint16\_t  d\_fieldmask;\
 	uint32\_t  d\_id;\
 	uint64\_t  d\_blk\_hardlimit;\
 	uint64\_t  d\_blk\_softlimit;\
 	uint64\_t  d\_ino\_hardlimit;\
 	uint64\_t  d\_ino\_softlimit;\
 	uint64\_t  d\_bcount;\
 	uint64\_t  d\_icount;\
 	int32\_t   d\_itimer;\
 	int32\_t   d\_btimer;\
 	uint16\_t  d\_iwarns;\
 	uint16\_t  d\_bwarns;\
 	int32\_t   d\_padding2;\
 	uint64\_t  d\_rtb\_hardlimit;\
 	uint64\_t  d\_rtb\_softlimit;\
 	uint64\_t  d\_rtbcount;\
 	int32\_t   d\_rtbtimer;\
 	uint16\_t  d\_rtbwarns;\
 	int16\_t   d\_padding3;\
 	char      d\_padding4\[8\]; };

## DESCRIPTION

All the blk units are in BBs (Basic Blocks) of 512 bytes.

- *.d\_version*

  Version of this structure.

- *.d\_flags*

  **XFS\_**{**USER**,**PROJ**,**GROUP**}**\_QUOTA**

- *.d\_fieldmask*

  Field specifier.

- *.d\_id*

  User, project, or group ID.

- *.d\_blk\_hardlimit*

  Absolute limit on disk blocks.

- *.d\_blk\_softlimit*

  Preferred limit on disk blocks.

- *.d\_ino\_hardlimit*

  Maximum # allocated inodes.

- *.d\_ino\_softlimit*

  Preferred inode limit.

- *.d\_bcount*

  \# disk blocks owned by the user.

- *.d\_icount*

  \# inodes owned by the user.

- *.d\_itimer*

  Zero if within inode limits; if not, we refuse service.

- *.d\_btimer*

  Similar to above; for disk blocks.

- *.d\_iwarns*

  \# warnings issued with respect to # of inodes.

- *.d\_bwarns*

  \# warnings issued with respect to disk blocks.

- *.d\_padding2*

  Padding; reserved for future use.

- *.d\_rtb\_hardlimit*

  Absolute limit on realtime (RT) disk blocks.

- *.d\_rtb\_softlimit*

  Preferred limit on RT disk blocks.

- *.d\_rtbcount*

  \# realtime blocks owned.

- *.d\_rtbtimer*

  Similar to above; for RT disk blocks.

- *.d\_rtbwarns*

  \# warnings issued with respect to RT disk blocks.

- *.d\_padding3*

  Padding; reserved for future use.

- *.d\_padding4\[8\]*

  Yet more padding.

## STANDARDS

Linux.

## HISTORY

Linux.

## SEE ALSO

[**Q\_XGETQUOTA**(2const)](/Q_XGETQUOTA/2const.md), [**Q\_XGETNEXTQUOTA**(2const)](/Q_XGETNEXTQUOTA/2const.md), [**Q\_XSETQLIM**(2const)](/Q_XSETQLIM/2const.md)
