Q_SYNC(2const)
π Q_SYNC β synchronize on-disk copy of quota usages π
okay bestie, so this is a <pink>Q_SYNC</pink> page from the <cyan>2const</cyan> section of the Linux man-pages, and it's literally just one little constant that lives inside quotactl(2) and quotactl_fd(2). no cap. it's giving "small but mighty" β¨
π LIBRARY
Standard C library (libc, -lc) π«Ά
β¨ SYNOPSIS
#include <sys/quota.h>
int quotactl(QCMD(Q_SYNC, type), const char *_Nullable special, 0, NULL);
and also, if you're the type of girl who goes straight to the raw syscall π:
#include <sys/quota.h> /* Definition of Q_* constants */
#include <sys/syscall.h> /* Definition of SYS_* constants */
#include <unistd.h>
int syscall(SYS_quotactl_fd, int fd, QCMD(Q_SYNC, type));
πΈ DESCRIPTION
So what does it actually do, you ask? it updates the on-disk copy of quota usages for a filesystem. that's it. that's the whole vibe. π
for quotactl(2), if special is NULL, then all filesystems with active quotas get synchronized β like, the whole group chat gets the message at once, periodt. but quotactl_fd(2) always synchronizes only one filesystem, no matter what. main character energy: one fd, one filesystem. π
π¦ RETURN VALUE
See quotactl(2). β¨
π ERRORS
See quotactl(2). π
π STANDARDS
Linux. π§
π HISTORY
Linux. β
π SEE ALSO
okay that's the whole page, bestie, you ate it π this was pulled from <purple>Linux man-pages 6.20</purple>, dated <lavender>2026-06-05</lavender> β and it's <rainbow>Q_SYNC(2const)</rainbow>, so you know exactly where to find it again iykyk π§π
π¦ 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