fs_disk_quota(2type)
๐ fs_disk_quota โ bestie edition ๐
okay so this is fs_disk_quota(2type) from the Linux man pages, section 2type (yes it's a type page, not a function page, she's different like that โจ). Buckle up, we're talking quota structs.
๐ธ NAME ๐ธ
fs_disk_quota โ filesystem disk quota. literally the whole vibe.
๐ LIBRARY ๐
Standard C library (libc). the classic. the blueprint. ๐ซถ
โจ 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];
};
look at her. so structured. so organized. the main character energy of structs fr fr ๐
๐ DESCRIPTION ๐
first things first, the tea: all the blk units are in BBs (Basic Blocks) of 512 bytes. no cap. don't forget it or your numbers are giving nonsense.
okay now field by field, bestie, we're going through EVERY single one:
.d_versionโ the version of this structure. (that's theFS_DQUOT_VERSION1energy right there.).d_flagsโXFS_{USER,PROJ,GROUP}_QUOTA. pick your fighter: user, project, or group..d_fieldmaskโ the field specifier. it says which fields we're actually talking about. iykyk..d_idโ the User, project, or group ID. whoever this quota belongs to. ๐ชช.d_blk_hardlimitโ the absolute limit on disk blocks. hard limit means hard limit, no wiggle room, periodt..d_blk_softlimitโ the preferred limit on disk blocks. soft, gentle, a suggestion she'd really like you to respect. ๐ธ.d_ino_hardlimitโ maximum # of allocated inodes..d_ino_softlimitโ preferred inode limit. again: soft..d_bcountโ # of disk blocks owned by the user..d_icountโ # of inodes owned by the user..d_itimerโ zero if within inode limits; if not, we refuse service. ๐ญ like okay wow, cold..d_btimerโ similar to above; for disk blocks..d_iwarnsโ # of warnings issued with respect to # of inodes..d_bwarnsโ # of warnings issued with respect to disk blocks..d_padding2โ padding; reserved for future use. she's just holding space rn, don't touch. ๐ซถ.d_rtb_hardlimitโ absolute limit on realtime (RT) disk blocks..d_rtb_softlimitโ preferred limit on RT disk blocks..d_rtbcountโ # of realtime blocks owned..d_rtbtimerโ similar to above; for RT disk blocks..d_rtbwarnsโ # of warnings issued with respect to RT disk blocks..d_padding3โ padding; reserved for future use..d_padding4[8]โ yet more padding. girl's got โจ layers โจ (and she's keeping the future's options open, iconic).
๐ STANDARDS ๐
Linux. that's it, that's the standard. ๐ฑ๐ฎ๐ณ๐บ๐ฝ
๐ฆ HISTORY ๐ฆ
Linux. (yes literally the same answer, she's consistent ๐)
๐ SEE ALSO ๐
go read those next, they're the friend group ๐
and that's the page bestie!! ๐ this lil number lives in Linux man-pages 6.20, dated 2026-06-05 โ so you know it's fresh, slay, go check your quotas, mwah ๐โจ
๐ฆ 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