dqblk(2type)
πΎ 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 theQIF_*constants. it gets set to show which fields in thedqblkstruct are actually valid. so it's not just vibes β it's literally telling you which of the above you can trust. π₯
lowkey important:.dqb_validis your vibe check. if aQIF_*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
Q_GETQUOTA(2const)Q_SETQUOTA(2const)nextdqblk(2type)
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
- 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