---
name: "Q_SYNC"
section: "2const"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Q_SYNC"
---

# Q\_SYNC(2const)

synchronize on-disk copy of quota usages

## NAME

Q\_SYNC - synchronize on-disk copy of quota usages

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

```
#include <sys/quota.h>
```

**int quotactl(QCMD(Q\_SYNC,** *type***), const char \*\_Nullable** *special***, 0, NULL);**

**#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

Update the on-disk copy of quota usages for a filesystem.

For [**quotactl**(2)](/quotactl/2.md), if *special* is NULL, then all filesystems with active quotas are synchronized. [**quotactl\_fd**(2)](/quotactl_fd/2.md) always synchronizes only one filesystem.

## RETURN VALUE

See [**quotactl**(2)](/quotactl/2.md).

## ERRORS

See [**quotactl**(2)](/quotactl/2.md).

## STANDARDS

Linux.

## HISTORY

Linux.

## SEE ALSO

[**quotactl**(2)](/quotactl/2.md), [**quotactl\_fd**(2)](/quotactl_fd/2.md)
