aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dqblk_xfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/dqblk_xfs.h')
-rw-r--r--include/linux/dqblk_xfs.h33
1 files changed, 21 insertions, 12 deletions
diff --git a/include/linux/dqblk_xfs.h b/include/linux/dqblk_xfs.h
index 527504c11c5e..86552807aed9 100644
--- a/include/linux/dqblk_xfs.h
+++ b/include/linux/dqblk_xfs.h
@@ -49,7 +49,7 @@
49#define FS_DQUOT_VERSION 1 /* fs_disk_quota.d_version */ 49#define FS_DQUOT_VERSION 1 /* fs_disk_quota.d_version */
50typedef struct fs_disk_quota { 50typedef struct fs_disk_quota {
51 __s8 d_version; /* version of this structure */ 51 __s8 d_version; /* version of this structure */
52 __s8 d_flags; /* XFS_{USER,PROJ,GROUP}_QUOTA */ 52 __s8 d_flags; /* FS_{USER,PROJ,GROUP}_QUOTA */
53 __u16 d_fieldmask; /* field specifier */ 53 __u16 d_fieldmask; /* field specifier */
54 __u32 d_id; /* user, project, or group ID */ 54 __u32 d_id; /* user, project, or group ID */
55 __u64 d_blk_hardlimit;/* absolute limit on disk blks */ 55 __u64 d_blk_hardlimit;/* absolute limit on disk blks */
@@ -110,18 +110,27 @@ typedef struct fs_disk_quota {
110#define FS_DQ_WARNS_MASK (FS_DQ_BWARNS | FS_DQ_IWARNS | FS_DQ_RTBWARNS) 110#define FS_DQ_WARNS_MASK (FS_DQ_BWARNS | FS_DQ_IWARNS | FS_DQ_RTBWARNS)
111 111
112/* 112/*
113 * Various flags related to quotactl(2). Only relevant to XFS filesystems. 113 * Accounting values. These can only be set for filesystem with
114 * non-transactional quotas that require quotacheck(8) in userspace.
114 */ 115 */
115#define XFS_QUOTA_UDQ_ACCT (1<<0) /* user quota accounting */ 116#define FS_DQ_BCOUNT (1<<12)
116#define XFS_QUOTA_UDQ_ENFD (1<<1) /* user quota limits enforcement */ 117#define FS_DQ_ICOUNT (1<<13)
117#define XFS_QUOTA_GDQ_ACCT (1<<2) /* group quota accounting */ 118#define FS_DQ_RTBCOUNT (1<<14)
118#define XFS_QUOTA_GDQ_ENFD (1<<3) /* group quota limits enforcement */ 119#define FS_DQ_ACCT_MASK (FS_DQ_BCOUNT | FS_DQ_ICOUNT | FS_DQ_RTBCOUNT)
119#define XFS_QUOTA_PDQ_ACCT (1<<4) /* project quota accounting */
120#define XFS_QUOTA_PDQ_ENFD (1<<5) /* project quota limits enforcement */
121 120
122#define XFS_USER_QUOTA (1<<0) /* user quota type */ 121/*
123#define XFS_PROJ_QUOTA (1<<1) /* project quota type */ 122 * Various flags related to quotactl(2).
124#define XFS_GROUP_QUOTA (1<<2) /* group quota type */ 123 */
124#define FS_QUOTA_UDQ_ACCT (1<<0) /* user quota accounting */
125#define FS_QUOTA_UDQ_ENFD (1<<1) /* user quota limits enforcement */
126#define FS_QUOTA_GDQ_ACCT (1<<2) /* group quota accounting */
127#define FS_QUOTA_GDQ_ENFD (1<<3) /* group quota limits enforcement */
128#define FS_QUOTA_PDQ_ACCT (1<<4) /* project quota accounting */
129#define FS_QUOTA_PDQ_ENFD (1<<5) /* project quota limits enforcement */
130
131#define FS_USER_QUOTA (1<<0) /* user quota type */
132#define FS_PROJ_QUOTA (1<<1) /* project quota type */
133#define FS_GROUP_QUOTA (1<<2) /* group quota type */
125 134
126/* 135/*
127 * fs_quota_stat is the struct returned in Q_XGETQSTAT for a given file system. 136 * fs_quota_stat is the struct returned in Q_XGETQSTAT for a given file system.
@@ -142,7 +151,7 @@ typedef struct fs_qfilestat {
142 151
143typedef struct fs_quota_stat { 152typedef struct fs_quota_stat {
144 __s8 qs_version; /* version number for future changes */ 153 __s8 qs_version; /* version number for future changes */
145 __u16 qs_flags; /* XFS_QUOTA_{U,P,G}DQ_{ACCT,ENFD} */ 154 __u16 qs_flags; /* FS_QUOTA_{U,P,G}DQ_{ACCT,ENFD} */
146 __s8 qs_pad; /* unused */ 155 __s8 qs_pad; /* unused */
147 fs_qfilestat_t qs_uquota; /* user quota storage information */ 156 fs_qfilestat_t qs_uquota; /* user quota storage information */
148 fs_qfilestat_t qs_gquota; /* group quota storage information */ 157 fs_qfilestat_t qs_gquota; /* group quota storage information */