dqinfo2type
Disk quota information
Usage
#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)
Library
Standard C library (libc)
Overview
struct dqinfo
- .dqi_bgrace
-
Time before block soft limit becomes hard limit.
- .dqi_igrace
-
Time before inode soft limit becomes hard limit.
- .dqi_flags
-
Flags for quotafile (
DQF_*).
- .dqi_valid
-
Bit mask of
IIF_* constants. It is set to indicate which fields in the dqinfo structure are valid.
DQF_*
|
Root squash enabled. |
|---|---|
|
Quota stored in a system file. |