Go to the documentation of this file.
17 #ifndef _LINUX_DQBLK_XFS_H
18 #define _LINUX_DQBLK_XFS_H
20 #include <linux/types.h>
26 #define XQM_CMD(x) (('X'<<8)+(x))
27 #define XQM_COMMAND(x) (((x) & (0xff<<8)) == ('X'<<8))
29 #define XQM_USRQUOTA 0
30 #define XQM_GRPQUOTA 1
31 #define XQM_PRJQUOTA 2
32 #define XQM_MAXQUOTAS 3
34 #define Q_XQUOTAON XQM_CMD(1)
35 #define Q_XQUOTAOFF XQM_CMD(2)
36 #define Q_XGETQUOTA XQM_CMD(3)
37 #define Q_XSETQLIM XQM_CMD(4)
38 #define Q_XGETQSTAT XQM_CMD(5)
39 #define Q_XQUOTARM XQM_CMD(6)
40 #define Q_XQUOTASYNC XQM_CMD(7)
49 #define FS_DQUOT_VERSION 1
79 #define FS_DQ_ISOFT (1<<0)
80 #define FS_DQ_IHARD (1<<1)
81 #define FS_DQ_BSOFT (1<<2)
82 #define FS_DQ_BHARD (1<<3)
83 #define FS_DQ_RTBSOFT (1<<4)
84 #define FS_DQ_RTBHARD (1<<5)
85 #define FS_DQ_LIMIT_MASK (FS_DQ_ISOFT | FS_DQ_IHARD | FS_DQ_BSOFT | \
86 FS_DQ_BHARD | FS_DQ_RTBSOFT | FS_DQ_RTBHARD)
94 #define FS_DQ_BTIMER (1<<6)
95 #define FS_DQ_ITIMER (1<<7)
96 #define FS_DQ_RTBTIMER (1<<8)
97 #define FS_DQ_TIMER_MASK (FS_DQ_BTIMER | FS_DQ_ITIMER | FS_DQ_RTBTIMER)
107 #define FS_DQ_BWARNS (1<<9)
108 #define FS_DQ_IWARNS (1<<10)
109 #define FS_DQ_RTBWARNS (1<<11)
110 #define FS_DQ_WARNS_MASK (FS_DQ_BWARNS | FS_DQ_IWARNS | FS_DQ_RTBWARNS)
116 #define FS_DQ_BCOUNT (1<<12)
117 #define FS_DQ_ICOUNT (1<<13)
118 #define FS_DQ_RTBCOUNT (1<<14)
119 #define FS_DQ_ACCT_MASK (FS_DQ_BCOUNT | FS_DQ_ICOUNT | FS_DQ_RTBCOUNT)
124 #define FS_QUOTA_UDQ_ACCT (1<<0)
125 #define FS_QUOTA_UDQ_ENFD (1<<1)
126 #define FS_QUOTA_GDQ_ACCT (1<<2)
127 #define FS_QUOTA_GDQ_ENFD (1<<3)
128 #define FS_QUOTA_PDQ_ACCT (1<<4)
129 #define FS_QUOTA_PDQ_ENFD (1<<5)
131 #define FS_USER_QUOTA (1<<0)
132 #define FS_PROJ_QUOTA (1<<1)
133 #define FS_GROUP_QUOTA (1<<2)
141 #define FS_QSTAT_VERSION 1