Go to the documentation of this file.
33 #ifndef _UAPI_LINUX_QUOTA_
34 #define _UAPI_LINUX_QUOTA_
36 #include <linux/errno.h>
37 #include <linux/types.h>
39 #define __DQUOT_VERSION__ "dquot_6.5.2"
48 #define INITQFNAMES { \
60 #define SUBCMDMASK 0x00ff
62 #define QCMD(cmd, type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK))
64 #define Q_SYNC 0x800001
65 #define Q_QUOTAON 0x800002
66 #define Q_QUOTAOFF 0x800003
67 #define Q_GETFMT 0x800004
68 #define Q_GETINFO 0x800005
69 #define Q_SETINFO 0x800006
70 #define Q_GETQUOTA 0x800007
71 #define Q_SETQUOTA 0x800008
74 #define QFMT_VFS_OLD 1
81 #define QIF_DQBLKSIZE_BITS 10
82 #define QIF_DQBLKSIZE (1 << QIF_DQBLKSIZE_BITS)
97 #define QIF_BLIMITS (1 << QIF_BLIMITS_B)
98 #define QIF_SPACE (1 << QIF_SPACE_B)
99 #define QIF_ILIMITS (1 << QIF_ILIMITS_B)
100 #define QIF_INODES (1 << QIF_INODES_B)
101 #define QIF_BTIME (1 << QIF_BTIME_B)
102 #define QIF_ITIME (1 << QIF_ITIME_B)
103 #define QIF_LIMITS (QIF_BLIMITS | QIF_ILIMITS)
104 #define QIF_USAGE (QIF_SPACE | QIF_INODES)
105 #define QIF_TIMES (QIF_BTIME | QIF_ITIME)
106 #define QIF_ALL (QIF_LIMITS | QIF_USAGE | QIF_TIMES)
127 #define IIF_ALL (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)
139 #define QUOTA_NL_NOWARN 0
140 #define QUOTA_NL_IHARDWARN 1
141 #define QUOTA_NL_ISOFTLONGWARN 2
142 #define QUOTA_NL_ISOFTWARN 3
143 #define QUOTA_NL_BHARDWARN 4
144 #define QUOTA_NL_BSOFTLONGWARN 5
145 #define QUOTA_NL_BSOFTWARN 6
146 #define QUOTA_NL_IHARDBELOW 7
147 #define QUOTA_NL_ISOFTBELOW 8
148 #define QUOTA_NL_BHARDBELOW 9
149 #define QUOTA_NL_BSOFTBELOW 10
156 #define QUOTA_NL_C_MAX (__QUOTA_NL_C_MAX - 1)
168 #define QUOTA_NL_A_MAX (__QUOTA_NL_A_MAX - 1)