1655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/****************************************************************************
2655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************
3655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
4655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   This header was automatically generated from a Linux kernel header
5655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   of the same name, to make information necessary for userspace to
6655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   call into the kernel available to libc.  It contains only constants,
7655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   structures, and macros generated from the original header, and thus,
8655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   contains no copyrightable information.
9655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
10655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   To edit the content of this header, modify the corresponding
11655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   source file (e.g. under external/kernel-headers/original/) then
12655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   run bionic/libc/kernel/tools/update_all.py
13655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
14655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   Any manual change here will be lost the next time this script will
15655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***   be run. You've been warned!
16655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ***
17655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************
18655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************/
19655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifndef _UAPI_LINUX_QUOTA_
20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define _UAPI_LINUX_QUOTA_
21655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/errno.h>
22655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/types.h>
23655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
2405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define __DQUOT_VERSION__ "dquot_6.6.0"
2505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define MAXQUOTAS 3
26655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define USRQUOTA 0
27655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define GRPQUOTA 1
28655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
2905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define PRJQUOTA 2
3005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define INITQFNAMES { "user", "group", "project", "undefined", \
31d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao};
32655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define SUBCMDMASK 0x00ff
33655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define SUBCMDSHIFT 8
34655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
3505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define QCMD(cmd,type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK))
36655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_SYNC 0x800001
37655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_QUOTAON 0x800002
38655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_QUOTAOFF 0x800003
39655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
4005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define Q_GETFMT 0x800004
41655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_GETINFO 0x800005
42655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_SETINFO 0x800006
43655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define Q_GETQUOTA 0x800007
44655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
4505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define Q_SETQUOTA 0x800008
46106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define Q_GETNEXTQUOTA 0x800009
47655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QFMT_VFS_OLD 1
48655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QFMT_VFS_V0 2
49655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
50106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define QFMT_OCFS2 3
5105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define QFMT_VFS_V1 4
52655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_DQBLKSIZE_BITS 10
53655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_DQBLKSIZE (1 << QIF_DQBLKSIZE_BITS)
54655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
55106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferrisenum {
5605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  QIF_BLIMITS_B = 0,
57d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  QIF_SPACE_B,
58d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  QIF_ILIMITS_B,
59655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
60106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  QIF_INODES_B,
6105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  QIF_BTIME_B,
62d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  QIF_ITIME_B,
63655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
64655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
65106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define QIF_BLIMITS (1 << QIF_BLIMITS_B)
6605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define QIF_SPACE (1 << QIF_SPACE_B)
67655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_ILIMITS (1 << QIF_ILIMITS_B)
68655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_INODES (1 << QIF_INODES_B)
69655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
70106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define QIF_BTIME (1 << QIF_BTIME_B)
7105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define QIF_ITIME (1 << QIF_ITIME_B)
72655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_LIMITS (QIF_BLIMITS | QIF_ILIMITS)
73655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QIF_USAGE (QIF_SPACE | QIF_INODES)
74655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
75106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define QIF_TIMES (QIF_BTIME | QIF_ITIME)
7605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define QIF_ALL (QIF_LIMITS | QIF_USAGE | QIF_TIMES)
77655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct if_dqblk {
78d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 dqb_bhardlimit;
79106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
80106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 dqb_bsoftlimit;
81106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 dqb_curspace;
82106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 dqb_ihardlimit;
83106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 dqb_isoftlimit;
84106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
85106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 dqb_curinodes;
86106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 dqb_btime;
87106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 dqb_itime;
88106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u32 dqb_valid;
89106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
90106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris};
91106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferrisstruct if_nextdqblk {
92106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u64 dqb_bhardlimit;
93d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 dqb_bsoftlimit;
94655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
9505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  __u64 dqb_curspace;
96d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 dqb_ihardlimit;
97d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 dqb_isoftlimit;
98d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 dqb_curinodes;
99655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
10005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  __u64 dqb_btime;
101d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 dqb_itime;
102d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 dqb_valid;
103106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u32 dqb_id;
104655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
105106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris};
10605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define IIF_BGRACE 1
107655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IIF_IGRACE 2
108655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IIF_FLAGS 4
10905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
110106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define IIF_ALL (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS)
11105d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisenum {
11205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  DQF_ROOT_SQUASH_B = 0,
11305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  DQF_SYS_FILE_B = 16,
11405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
115106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  DQF_PRIVATE
11605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris};
11705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define DQF_ROOT_SQUASH (1 << DQF_ROOT_SQUASH_B)
11805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define DQF_SYS_FILE (1 << DQF_SYS_FILE_B)
119655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
120106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferrisstruct if_dqinfo {
121d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 dqi_bgrace;
122d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u64 dqi_igrace;
123d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __u32 dqi_flags;
124655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
125106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __u32 dqi_valid;
126655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
127655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_NOWARN 0
128655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_IHARDWARN 1
129655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
130106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define QUOTA_NL_ISOFTLONGWARN 2
131655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_ISOFTWARN 3
132655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_BHARDWARN 4
133655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_BSOFTLONGWARN 5
134655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
135106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define QUOTA_NL_BSOFTWARN 6
136655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_IHARDBELOW 7
137655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_ISOFTBELOW 8
138655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_BHARDBELOW 9
139655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
140106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris#define QUOTA_NL_BSOFTBELOW 10
141655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengenum {
142d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  QUOTA_NL_C_UNSPEC,
143d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  QUOTA_NL_C_WARNING,
144655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
145106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  __QUOTA_NL_C_MAX,
146655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
147655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_C_MAX (__QUOTA_NL_C_MAX - 1)
148655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengenum {
149655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
150106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  QUOTA_NL_A_UNSPEC,
151d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  QUOTA_NL_A_QTYPE,
152d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  QUOTA_NL_A_EXCESS_ID,
153d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  QUOTA_NL_A_WARNING,
154655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
155106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  QUOTA_NL_A_DEV_MAJOR,
156d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  QUOTA_NL_A_DEV_MINOR,
157d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  QUOTA_NL_A_CAUSED_ID,
158106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris  QUOTA_NL_A_PAD,
159106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
160d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __QUOTA_NL_A_MAX,
161655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
162655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define QUOTA_NL_A_MAX (__QUOTA_NL_A_MAX - 1)
163655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#endif
164106b3a8a7dc03c19a45e322de425ac56aafac358Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
165