dqinfo(2type)
β¨ NAME β¨
okay so bestie, this is the dqinfo page from the dqinfo(2type) manual β like, the type-definition corner of the man-pages world π β and it's all about disk quota information. That's the struct + the flags you use when you're doing quota stuff. Slay.
π LIBRARY π
Standard C library (libc) π«Ά
π SYNOPSIS π
no cap, here's the whole thing, verbatim:
#include <sys/quota.h>
struct dqinfo {
uint64_t dqi_bgrace;
uint64_t dqi_igrace;
uint32_t dqi_flags;
uint32_t dqi_valid;
};
/* Quota format QFMT_VFS_OLD */
#define DQF_ROOT_SQUASH (1 << 0)
/* Quota format QFMT_VFS_V0 / QFMT_VFS_V1 */
#define DQF_SYS_FILE (1 << 16)
#define IIF_BGRACE 1
#define IIF_IGRACE 2
#define IIF_FLAGS 4
#define IIF_ALL (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)
π DESCRIPTION π
π¦ struct dqinfo π¦
the four fields, one by one, iykyk:
.dqi_bgraceβ how long you've got before your block soft limit goes full hard limit π the timer, basically..dqi_igraceβ same energy but for the inode soft limit: how long until soft becomes hard..dqi_flagsβ the flags for the quotafile, aka theDQF_*squad β¨.dqi_validβ a bit mask of theIIF_*constants. It gets set to tell you which fields in thedqinfostructure are actually valid π
π DQF_* π
DQF_ROOT_SQUASHβ root squash is enabled, periodt.DQF_SYS_FILEβ the quota is stored in a system file. iconic π
πΈ STANDARDS πΈ
Linux. just Linux π«Ά
π°οΈ HISTORY π°οΈ
dropped in Linux 2.4.22 β
and lowkey a fun lore drop: before Linux 4.0, DQF_ROOT_SQUASH had been defined privately as V1_DQF_RSQUASH π the glow-up was real.
π SEE ALSO π
and that's the whole vibe bestie π this was page dqinfo(2type) from Linux man-pages 6.20, dated 2026-06-05 β go get that quota info, you absolute main character πβ¨
π¦ 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