dqblk(2type)

πŸ“¦
version 6.20 Β· 2 versions
, in arch rolling, nixpkgs unstable

πŸ’Ύ dqblk β€” the disk quota block era πŸ’…

okay bestie, gather round, because we're talking dqblk(2type) β€” the disk quota block. yes, the whole manual. it's short. we're gonna make it iconic anyway. ✨

πŸ“š LIBRARY

Standard C library (libc) β€” the og, the blueprint, the main character. 🫢


✨ SYNOPSIS ✨

get into it:

#include <sys/quota.h>

struct dqblk {
     uint64_t  dqb_bhardlimit;
     uint64_t  dqb_bsoftlimit;
     uint64_t  dqb_curspace;
     uint64_t  dqb_ihardlimit;
     uint64_t  dqb_isoftlimit;
     uint64_t  dqb_curinodes;
     uint64_t  dqb_btime;
     uint64_t  dqb_itime;

     uint32_t  dqb_valid;
};

#define QIF_BLIMITS   1
#define QIF_SPACE     2
#define QIF_ILIMITS   4
#define QIF_INODES    8
#define QIF_BTIME     16
#define QIF_ITIME     32
#define QIF_LIMITS    (QIF_BLIMITS | QIF_ILIMITS)
#define QIF_USAGE     (QIF_SPACE | QIF_INODES)
#define QIF_TIMES     (QIF_BTIME | QIF_ITIME)
#define QIF_ALL       (QIF_LIMITS | QIF_USAGE | QIF_TIMES)

like… look at that bit mask. the | action? chef's kiss. 🧚


🌸 DESCRIPTION 🌸

here's the field-by-field rundown, no gatekeeping:

  • .dqb_bhardlimit, .dqb_bsoftlimit β€” the absolute limit and the preferred limit on disk quota blocks. hard = do not pass go. soft = the gentle "bestie…" warning. πŸ’€
  • .dqb_curspace β€” how much space you're currently occupying, in bytes. it's giving storage anxiety.
  • .dqb_ihardlimit, .dqb_isoftlimit β€” the absolute and preferred limits on the number of allocated inodes. hard and soft again, but this time it's about inodes, not blocks. πŸ‘‘
  • .dqb_curinodes β€” the current number of allocated inodes. the receipts. 🧾
  • .dqb_btime β€” the time limit for excessive disk use. so if you're out here being extra with your blocks, the clock starts. ⏰
  • .dqb_itime β€” the time limit for excessive files. same energy, but for files specifically. like, you have too many. ma'am. 😭
  • .dqb_valid β€” a bit mask of the QIF_* constants. it gets set to show which fields in the dqblk struct are actually valid. so it's not just vibes β€” it's literally telling you which of the above you can trust. πŸ”₯
lowkey important: .dqb_valid is your vibe check. if a QIF_* bit isn't set, that field is not claiming to be valid. don't be out here reading invalid fields like they owe you something. πŸ’…

πŸ“ STANDARDS

Linux. that's it. that's the standard. periodt.


πŸ•°οΈ HISTORY

Linux 2.4.22 β€” yeah, this one's been around a minute. vintage, but she still slays. πŸŽ€


πŸ‘€ SEE ALSO

go read those too, bestie, we love a cross-reference. πŸ¦‹


and that's the whole page, fr fr. this was Linux man-pages 6.20, dated 2026-06-05 β€” shoutout to the man-pages girlies for keeping dqblk(2type) documented so the rest of us can simply exist. you're welcome, ily, go check your quotas. πŸ’–πŸŒΈβœ¨

πŸ“¦ 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