blob: 31b39d6270823bb918a93f7717c44458625f44d8 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_DQBLK_XFS_H
20#define _LINUX_DQBLK_XFS_H
21#include <linux/types.h>
22#define XQM_CMD(x) (('X'<<8)+(x))
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define XQM_COMMAND(x) (((x) & (0xff<<8)) == ('X'<<8))
25#define XQM_USRQUOTA 0
26#define XQM_GRPQUOTA 1
27#define XQM_PRJQUOTA 2
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define XQM_MAXQUOTAS 3
30#define Q_XQUOTAON XQM_CMD(1)
31#define Q_XQUOTAOFF XQM_CMD(2)
32#define Q_XGETQUOTA XQM_CMD(3)
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define Q_XSETQLIM XQM_CMD(4)
35#define Q_XGETQSTAT XQM_CMD(5)
36#define Q_XQUOTARM XQM_CMD(6)
37#define Q_XQUOTASYNC XQM_CMD(7)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070039#define Q_XGETQSTATV XQM_CMD(8)
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define FS_DQUOT_VERSION 1
41typedef struct fs_disk_quota {
42 __s8 d_version;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070044 __s8 d_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070045 __u16 d_fieldmask;
46 __u32 d_id;
47 __u64 d_blk_hardlimit;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070049 __u64 d_blk_softlimit;
Ben Cheng655a7c02013-10-16 16:09:24 -070050 __u64 d_ino_hardlimit;
51 __u64 d_ino_softlimit;
52 __u64 d_bcount;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070054 __u64 d_icount;
Ben Cheng655a7c02013-10-16 16:09:24 -070055 __s32 d_itimer;
56 __s32 d_btimer;
57 __u16 d_iwarns;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070059 __u16 d_bwarns;
Ben Cheng655a7c02013-10-16 16:09:24 -070060 __s32 d_padding2;
61 __u64 d_rtb_hardlimit;
62 __u64 d_rtb_softlimit;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070064 __u64 d_rtbcount;
Ben Cheng655a7c02013-10-16 16:09:24 -070065 __s32 d_rtbtimer;
66 __u16 d_rtbwarns;
67 __s16 d_padding3;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070069 char d_padding4[8];
Ben Cheng655a7c02013-10-16 16:09:24 -070070} fs_disk_quota_t;
71#define FS_DQ_ISOFT (1<<0)
72#define FS_DQ_IHARD (1<<1)
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070074#define FS_DQ_BSOFT (1<<2)
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define FS_DQ_BHARD (1<<3)
76#define FS_DQ_RTBSOFT (1<<4)
77#define FS_DQ_RTBHARD (1<<5)
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070079#define FS_DQ_LIMIT_MASK (FS_DQ_ISOFT | FS_DQ_IHARD | FS_DQ_BSOFT | FS_DQ_BHARD | FS_DQ_RTBSOFT | FS_DQ_RTBHARD)
Ben Cheng655a7c02013-10-16 16:09:24 -070080#define FS_DQ_BTIMER (1<<6)
81#define FS_DQ_ITIMER (1<<7)
82#define FS_DQ_RTBTIMER (1<<8)
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070084#define FS_DQ_TIMER_MASK (FS_DQ_BTIMER | FS_DQ_ITIMER | FS_DQ_RTBTIMER)
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define FS_DQ_BWARNS (1<<9)
86#define FS_DQ_IWARNS (1<<10)
87#define FS_DQ_RTBWARNS (1<<11)
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070089#define FS_DQ_WARNS_MASK (FS_DQ_BWARNS | FS_DQ_IWARNS | FS_DQ_RTBWARNS)
Ben Cheng655a7c02013-10-16 16:09:24 -070090#define FS_DQ_BCOUNT (1<<12)
91#define FS_DQ_ICOUNT (1<<13)
92#define FS_DQ_RTBCOUNT (1<<14)
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070094#define FS_DQ_ACCT_MASK (FS_DQ_BCOUNT | FS_DQ_ICOUNT | FS_DQ_RTBCOUNT)
Ben Cheng655a7c02013-10-16 16:09:24 -070095#define FS_QUOTA_UDQ_ACCT (1<<0)
96#define FS_QUOTA_UDQ_ENFD (1<<1)
97#define FS_QUOTA_GDQ_ACCT (1<<2)
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070099#define FS_QUOTA_GDQ_ENFD (1<<3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700100#define FS_QUOTA_PDQ_ACCT (1<<4)
101#define FS_QUOTA_PDQ_ENFD (1<<5)
102#define FS_USER_QUOTA (1<<0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700104#define FS_PROJ_QUOTA (1<<1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700105#define FS_GROUP_QUOTA (1<<2)
106#define FS_QSTAT_VERSION 1
107typedef struct fs_qfilestat {
Christopher Ferris38062f92014-07-09 15:33:25 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 __u64 qfs_ino;
110 __u64 qfs_nblks;
111 __u32 qfs_nextents;
112} fs_qfilestat_t;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114typedef struct fs_quota_stat {
115 __s8 qs_version;
116 __u16 qs_flags;
117 __s8 qs_pad;
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 fs_qfilestat_t qs_uquota;
120 fs_qfilestat_t qs_gquota;
121 __u32 qs_incoredqs;
122 __s32 qs_btimelimit;
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 __s32 qs_itimelimit;
125 __s32 qs_rtbtimelimit;
126 __u16 qs_bwarnlimit;
127 __u16 qs_iwarnlimit;
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129} fs_quota_stat_t;
130#define FS_QSTATV_VERSION1 1
131struct fs_qfilestatv {
Ben Cheng655a7c02013-10-16 16:09:24 -0700132 __u64 qfs_ino;
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 __u64 qfs_nblks;
135 __u32 qfs_nextents;
Christopher Ferris38062f92014-07-09 15:33:25 -0700136 __u32 qfs_pad;
137};
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700139struct fs_quota_statv {
Ben Cheng655a7c02013-10-16 16:09:24 -0700140 __s8 qs_version;
Christopher Ferris38062f92014-07-09 15:33:25 -0700141 __u8 qs_pad1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700142 __u16 qs_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700144 __u32 qs_incoredqs;
Christopher Ferris38062f92014-07-09 15:33:25 -0700145 struct fs_qfilestatv qs_uquota;
146 struct fs_qfilestatv qs_gquota;
147 struct fs_qfilestatv qs_pquota;
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149 __s32 qs_btimelimit;
150 __s32 qs_itimelimit;
Ben Cheng655a7c02013-10-16 16:09:24 -0700151 __s32 qs_rtbtimelimit;
152 __u16 qs_bwarnlimit;
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700154 __u16 qs_iwarnlimit;
155 __u64 qs_pad2[8];
156};
Ben Cheng655a7c02013-10-16 16:09:24 -0700157#endif
Christopher Ferris38062f92014-07-09 15:33:25 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */