---
name: "Q_SETINFO"
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_SETINFO"
---

# Q\_SETINFO(2const)

set information about quotafile

## NAME

Q\_SETINFO - set information about quotafile

## LIBRARY

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

## SYNOPSIS

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

**int quotactl(QCMD(Q\_SETINFO,** *type***), const char \*\_Nullable** *special***, 0,**              **caddr\_t** *addr***);**

**#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\_SETINFO,** *type***), 0,**             **struct dqinfo \****addr***);**

## DESCRIPTION

Set information about quotafile.

The *addr* argument should be a pointer to a [**dqinfo**(2type)](/dqinfo/2type.md) structure. The *.dqi\_valid* field of the [**dqinfo**(2type)](/dqinfo/2type.md) structure indicates the entries in the structure that have been set by the caller.

This operation requires privilege (**CAP\_SYS\_ADMIN**).

## RETURN VALUE

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

## ERRORS

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

## STANDARDS

Linux.

## HISTORY

Linux 2.4.22.

This operation supersedes the **Q\_SETGRACE** and **Q\_SETFLAGS** operations in the previous quota interfaces.

## SEE ALSO

[**quotactl**(2)](/quotactl/2.md), [**quotactl\_fd**(2)](/quotactl_fd/2.md), [**Q\_GETINFO**(2const)](/Q_GETINFO/2const.md) [**dqinfo**(2type)](/dqinfo/2type.md)
