Q_SYNC(2const)

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

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