fs_disk_quota(2type)

๐Ÿ“ฆ
version 6.20 ยท 2 versions
, in arch rolling, nixpkgs unstable

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