xref: /aosp_15_r20/external/e2fsprogs/lib/support/quotaio.h (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker /** quotaio.h
2*6a54128fSAndroid Build Coastguard Worker  *
3*6a54128fSAndroid Build Coastguard Worker  * Interface to the quota library.
4*6a54128fSAndroid Build Coastguard Worker  *
5*6a54128fSAndroid Build Coastguard Worker  * The quota library provides interface for creating and updating the quota
6*6a54128fSAndroid Build Coastguard Worker  * files and the ext4 superblock fields. It supports the new VFS_V1 quota
7*6a54128fSAndroid Build Coastguard Worker  * format. The quota library also provides support for keeping track of quotas
8*6a54128fSAndroid Build Coastguard Worker  * in memory.
9*6a54128fSAndroid Build Coastguard Worker  * The typical way to use the quota library is as follows:
10*6a54128fSAndroid Build Coastguard Worker  * {
11*6a54128fSAndroid Build Coastguard Worker  *	quota_ctx_t qctx;
12*6a54128fSAndroid Build Coastguard Worker  *
13*6a54128fSAndroid Build Coastguard Worker  *	quota_init_context(&qctx, fs, QUOTA_ALL_BIT);
14*6a54128fSAndroid Build Coastguard Worker  *	{
15*6a54128fSAndroid Build Coastguard Worker  *		quota_compute_usage(qctx);
16*6a54128fSAndroid Build Coastguard Worker  *		AND/OR
17*6a54128fSAndroid Build Coastguard Worker  *		quota_data_add/quota_data_sub/quota_data_inodes();
18*6a54128fSAndroid Build Coastguard Worker  *	}
19*6a54128fSAndroid Build Coastguard Worker  *	quota_write_inode(qctx, USRQUOTA);
20*6a54128fSAndroid Build Coastguard Worker  *	quota_write_inode(qctx, GRPQUOTA);
21*6a54128fSAndroid Build Coastguard Worker  *	quota_release_context(&qctx);
22*6a54128fSAndroid Build Coastguard Worker  * }
23*6a54128fSAndroid Build Coastguard Worker  *
24*6a54128fSAndroid Build Coastguard Worker  * This initial version does not support reading the quota files. This support
25*6a54128fSAndroid Build Coastguard Worker  * will be added in near future.
26*6a54128fSAndroid Build Coastguard Worker  *
27*6a54128fSAndroid Build Coastguard Worker  * Aditya Kali <[email protected]>
28*6a54128fSAndroid Build Coastguard Worker  * Header of IO operations for quota utilities
29*6a54128fSAndroid Build Coastguard Worker  *
30*6a54128fSAndroid Build Coastguard Worker  * Jan Kara <[email protected]>
31*6a54128fSAndroid Build Coastguard Worker  */
32*6a54128fSAndroid Build Coastguard Worker 
33*6a54128fSAndroid Build Coastguard Worker #ifndef GUARD_QUOTAIO_H
34*6a54128fSAndroid Build Coastguard Worker #define GUARD_QUOTAIO_H
35*6a54128fSAndroid Build Coastguard Worker 
36*6a54128fSAndroid Build Coastguard Worker #include <limits.h>
37*6a54128fSAndroid Build Coastguard Worker #include <sys/types.h>
38*6a54128fSAndroid Build Coastguard Worker #include <sys/stat.h>
39*6a54128fSAndroid Build Coastguard Worker 
40*6a54128fSAndroid Build Coastguard Worker #include "ext2fs/ext2_fs.h"
41*6a54128fSAndroid Build Coastguard Worker #include "ext2fs/ext2fs.h"
42*6a54128fSAndroid Build Coastguard Worker #include "dqblk_v2.h"
43*6a54128fSAndroid Build Coastguard Worker 
44*6a54128fSAndroid Build Coastguard Worker typedef int64_t qsize_t;	/* Type in which we store size limitations */
45*6a54128fSAndroid Build Coastguard Worker 
46*6a54128fSAndroid Build Coastguard Worker enum quota_type {
47*6a54128fSAndroid Build Coastguard Worker 	USRQUOTA = 0,
48*6a54128fSAndroid Build Coastguard Worker 	GRPQUOTA = 1,
49*6a54128fSAndroid Build Coastguard Worker 	PRJQUOTA = 2,
50*6a54128fSAndroid Build Coastguard Worker 	MAXQUOTAS = 3,
51*6a54128fSAndroid Build Coastguard Worker };
52*6a54128fSAndroid Build Coastguard Worker 
53*6a54128fSAndroid Build Coastguard Worker #if MAXQUOTAS > 32
54*6a54128fSAndroid Build Coastguard Worker #error "cannot have more than 32 quota types to fit in qtype_bits"
55*6a54128fSAndroid Build Coastguard Worker #endif
56*6a54128fSAndroid Build Coastguard Worker 
57*6a54128fSAndroid Build Coastguard Worker #define QUOTA_USR_BIT (1 << USRQUOTA)
58*6a54128fSAndroid Build Coastguard Worker #define QUOTA_GRP_BIT (1 << GRPQUOTA)
59*6a54128fSAndroid Build Coastguard Worker #define QUOTA_PRJ_BIT (1 << PRJQUOTA)
60*6a54128fSAndroid Build Coastguard Worker #define QUOTA_ALL_BIT (QUOTA_USR_BIT | QUOTA_GRP_BIT | QUOTA_PRJ_BIT)
61*6a54128fSAndroid Build Coastguard Worker 
62*6a54128fSAndroid Build Coastguard Worker typedef struct quota_ctx *quota_ctx_t;
63*6a54128fSAndroid Build Coastguard Worker struct dict_t;
64*6a54128fSAndroid Build Coastguard Worker 
65*6a54128fSAndroid Build Coastguard Worker struct quota_ctx {
66*6a54128fSAndroid Build Coastguard Worker 	ext2_filsys	fs;
67*6a54128fSAndroid Build Coastguard Worker 	struct dict_t	*quota_dict[MAXQUOTAS];
68*6a54128fSAndroid Build Coastguard Worker 	struct quota_handle *quota_file[MAXQUOTAS];
69*6a54128fSAndroid Build Coastguard Worker };
70*6a54128fSAndroid Build Coastguard Worker 
71*6a54128fSAndroid Build Coastguard Worker /*
72*6a54128fSAndroid Build Coastguard Worker  * Definitions of magics and versions of current quota files
73*6a54128fSAndroid Build Coastguard Worker  */
74*6a54128fSAndroid Build Coastguard Worker #define INITQMAGICS {\
75*6a54128fSAndroid Build Coastguard Worker 	0xd9c01f11,	/* USRQUOTA */\
76*6a54128fSAndroid Build Coastguard Worker 	0xd9c01927,	/* GRPQUOTA */\
77*6a54128fSAndroid Build Coastguard Worker 	0xd9c03f14	/* PRJQUOTA */\
78*6a54128fSAndroid Build Coastguard Worker }
79*6a54128fSAndroid Build Coastguard Worker 
80*6a54128fSAndroid Build Coastguard Worker /* Size of blocks in which are counted size limits in generic utility parts */
81*6a54128fSAndroid Build Coastguard Worker #define QUOTABLOCK_BITS 10
82*6a54128fSAndroid Build Coastguard Worker #define QUOTABLOCK_SIZE (1 << QUOTABLOCK_BITS)
83*6a54128fSAndroid Build Coastguard Worker #define toqb(x) (((x) + QUOTABLOCK_SIZE - 1) >> QUOTABLOCK_BITS)
84*6a54128fSAndroid Build Coastguard Worker 
85*6a54128fSAndroid Build Coastguard Worker /* Quota format type IDs */
86*6a54128fSAndroid Build Coastguard Worker #define	QFMT_VFS_OLD 1
87*6a54128fSAndroid Build Coastguard Worker #define	QFMT_VFS_V0 2
88*6a54128fSAndroid Build Coastguard Worker #define	QFMT_VFS_V1 4
89*6a54128fSAndroid Build Coastguard Worker 
90*6a54128fSAndroid Build Coastguard Worker /*
91*6a54128fSAndroid Build Coastguard Worker  * The following constants define the default amount of time given a user
92*6a54128fSAndroid Build Coastguard Worker  * before the soft limits are treated as hard limits (usually resulting
93*6a54128fSAndroid Build Coastguard Worker  * in an allocation failure). The timer is started when the user crosses
94*6a54128fSAndroid Build Coastguard Worker  * their soft limit, it is reset when they go below their soft limit.
95*6a54128fSAndroid Build Coastguard Worker  */
96*6a54128fSAndroid Build Coastguard Worker #define MAX_IQ_TIME  604800	/* (7*24*60*60) 1 week */
97*6a54128fSAndroid Build Coastguard Worker #define MAX_DQ_TIME  604800	/* (7*24*60*60) 1 week */
98*6a54128fSAndroid Build Coastguard Worker 
99*6a54128fSAndroid Build Coastguard Worker #define IOFL_INFODIRTY	0x01	/* Did info change? */
100*6a54128fSAndroid Build Coastguard Worker 
101*6a54128fSAndroid Build Coastguard Worker struct quotafile_ops;
102*6a54128fSAndroid Build Coastguard Worker 
103*6a54128fSAndroid Build Coastguard Worker /* Generic information about quotafile */
104*6a54128fSAndroid Build Coastguard Worker struct util_dqinfo {
105*6a54128fSAndroid Build Coastguard Worker 	time_t dqi_bgrace;	/* Block grace time for given quotafile */
106*6a54128fSAndroid Build Coastguard Worker 	time_t dqi_igrace;	/* Inode grace time for given quotafile */
107*6a54128fSAndroid Build Coastguard Worker 	union {
108*6a54128fSAndroid Build Coastguard Worker 		struct v2_mem_dqinfo v2_mdqi;
109*6a54128fSAndroid Build Coastguard Worker 	} u;			/* Format specific info about quotafile */
110*6a54128fSAndroid Build Coastguard Worker };
111*6a54128fSAndroid Build Coastguard Worker 
112*6a54128fSAndroid Build Coastguard Worker struct quota_file {
113*6a54128fSAndroid Build Coastguard Worker 	ext2_filsys fs;
114*6a54128fSAndroid Build Coastguard Worker 	ext2_ino_t ino;
115*6a54128fSAndroid Build Coastguard Worker 	ext2_file_t e2_file;
116*6a54128fSAndroid Build Coastguard Worker };
117*6a54128fSAndroid Build Coastguard Worker 
118*6a54128fSAndroid Build Coastguard Worker /* Structure for one opened quota file */
119*6a54128fSAndroid Build Coastguard Worker struct quota_handle {
120*6a54128fSAndroid Build Coastguard Worker 	enum quota_type qh_type;	/* Type of quotafile */
121*6a54128fSAndroid Build Coastguard Worker 	int qh_fmt;		/* Quotafile format */
122*6a54128fSAndroid Build Coastguard Worker 	int qh_file_flags;
123*6a54128fSAndroid Build Coastguard Worker 	int qh_io_flags;	/* IO flags for file */
124*6a54128fSAndroid Build Coastguard Worker 	struct quota_file qh_qf;
125*6a54128fSAndroid Build Coastguard Worker 	unsigned int (*e2fs_read)(struct quota_file *qf, ext2_loff_t offset,
126*6a54128fSAndroid Build Coastguard Worker 			 void *buf, unsigned int size);
127*6a54128fSAndroid Build Coastguard Worker 	unsigned int (*e2fs_write)(struct quota_file *qf, ext2_loff_t offset,
128*6a54128fSAndroid Build Coastguard Worker 			  void *buf, unsigned int size);
129*6a54128fSAndroid Build Coastguard Worker 	struct quotafile_ops *qh_ops;	/* Operations on quotafile */
130*6a54128fSAndroid Build Coastguard Worker 	struct util_dqinfo qh_info;	/* Generic quotafile info */
131*6a54128fSAndroid Build Coastguard Worker };
132*6a54128fSAndroid Build Coastguard Worker 
133*6a54128fSAndroid Build Coastguard Worker /* Utility quota block */
134*6a54128fSAndroid Build Coastguard Worker struct util_dqblk {
135*6a54128fSAndroid Build Coastguard Worker 	qsize_t dqb_ihardlimit;
136*6a54128fSAndroid Build Coastguard Worker 	qsize_t dqb_isoftlimit;
137*6a54128fSAndroid Build Coastguard Worker 	qsize_t dqb_curinodes;
138*6a54128fSAndroid Build Coastguard Worker 	qsize_t dqb_bhardlimit;
139*6a54128fSAndroid Build Coastguard Worker 	qsize_t dqb_bsoftlimit;
140*6a54128fSAndroid Build Coastguard Worker 	qsize_t dqb_curspace;
141*6a54128fSAndroid Build Coastguard Worker 	time_t dqb_btime;
142*6a54128fSAndroid Build Coastguard Worker 	time_t dqb_itime;
143*6a54128fSAndroid Build Coastguard Worker 	union {
144*6a54128fSAndroid Build Coastguard Worker 		struct v2_mem_dqblk v2_mdqb;
145*6a54128fSAndroid Build Coastguard Worker 	} u;			/* Format specific dquot information */
146*6a54128fSAndroid Build Coastguard Worker };
147*6a54128fSAndroid Build Coastguard Worker 
148*6a54128fSAndroid Build Coastguard Worker /* Structure for one loaded quota */
149*6a54128fSAndroid Build Coastguard Worker struct dquot {
150*6a54128fSAndroid Build Coastguard Worker 	struct dquot *dq_next;	/* Pointer to next dquot in the list */
151*6a54128fSAndroid Build Coastguard Worker 	qid_t dq_id;		/* ID dquot belongs to */
152*6a54128fSAndroid Build Coastguard Worker 	int dq_flags;		/* Some flags for utils */
153*6a54128fSAndroid Build Coastguard Worker 	struct quota_handle *dq_h;	/* Handle of quotafile for this dquot */
154*6a54128fSAndroid Build Coastguard Worker 	struct util_dqblk dq_dqb;	/* Parsed data of dquot */
155*6a54128fSAndroid Build Coastguard Worker };
156*6a54128fSAndroid Build Coastguard Worker 
157*6a54128fSAndroid Build Coastguard Worker #define DQF_SEEN	0x0001
158*6a54128fSAndroid Build Coastguard Worker 
159*6a54128fSAndroid Build Coastguard Worker /* Structure of quotafile operations */
160*6a54128fSAndroid Build Coastguard Worker struct quotafile_ops {
161*6a54128fSAndroid Build Coastguard Worker 	/* Check whether quotafile is in our format */
162*6a54128fSAndroid Build Coastguard Worker 	int (*check_file) (struct quota_handle *h, int type, int fmt);
163*6a54128fSAndroid Build Coastguard Worker 	/* Open quotafile */
164*6a54128fSAndroid Build Coastguard Worker 	int (*init_io) (struct quota_handle *h);
165*6a54128fSAndroid Build Coastguard Worker 	/* Create new quotafile */
166*6a54128fSAndroid Build Coastguard Worker 	int (*new_io) (struct quota_handle *h);
167*6a54128fSAndroid Build Coastguard Worker 	/* Write all changes and close quotafile */
168*6a54128fSAndroid Build Coastguard Worker 	int (*end_io) (struct quota_handle *h);
169*6a54128fSAndroid Build Coastguard Worker 	/* Write info about quotafile */
170*6a54128fSAndroid Build Coastguard Worker 	int (*write_info) (struct quota_handle *h);
171*6a54128fSAndroid Build Coastguard Worker 	/* Read dquot into memory */
172*6a54128fSAndroid Build Coastguard Worker 	struct dquot *(*read_dquot) (struct quota_handle *h, qid_t id);
173*6a54128fSAndroid Build Coastguard Worker 	/* Write given dquot to disk */
174*6a54128fSAndroid Build Coastguard Worker 	int (*commit_dquot) (struct dquot *dquot);
175*6a54128fSAndroid Build Coastguard Worker 	/* Scan quotafile and call callback on every structure */
176*6a54128fSAndroid Build Coastguard Worker 	int (*scan_dquots) (struct quota_handle *h,
177*6a54128fSAndroid Build Coastguard Worker 			    int (*process_dquot) (struct dquot *dquot,
178*6a54128fSAndroid Build Coastguard Worker 						  void *data),
179*6a54128fSAndroid Build Coastguard Worker 			    void *data);
180*6a54128fSAndroid Build Coastguard Worker 	/* Function to print format specific file information */
181*6a54128fSAndroid Build Coastguard Worker 	int (*report) (struct quota_handle *h, int verbose);
182*6a54128fSAndroid Build Coastguard Worker };
183*6a54128fSAndroid Build Coastguard Worker 
184*6a54128fSAndroid Build Coastguard Worker /* This might go into a special header file but that sounds a bit silly... */
185*6a54128fSAndroid Build Coastguard Worker extern struct quotafile_ops quotafile_ops_meta;
186*6a54128fSAndroid Build Coastguard Worker 
187*6a54128fSAndroid Build Coastguard Worker /* Open existing quotafile of given type (and verify its format) on given
188*6a54128fSAndroid Build Coastguard Worker  * filesystem. */
189*6a54128fSAndroid Build Coastguard Worker errcode_t quota_file_open(quota_ctx_t qctx, struct quota_handle *h,
190*6a54128fSAndroid Build Coastguard Worker 			  ext2_ino_t qf_ino, enum quota_type type,
191*6a54128fSAndroid Build Coastguard Worker 			  int fmt, int flags);
192*6a54128fSAndroid Build Coastguard Worker 
193*6a54128fSAndroid Build Coastguard Worker 
194*6a54128fSAndroid Build Coastguard Worker /* Create new quotafile of specified format on given filesystem */
195*6a54128fSAndroid Build Coastguard Worker errcode_t quota_file_create(struct quota_handle *h, ext2_filsys fs,
196*6a54128fSAndroid Build Coastguard Worker 			    enum quota_type qtype, int fmt);
197*6a54128fSAndroid Build Coastguard Worker 
198*6a54128fSAndroid Build Coastguard Worker /* Close quotafile */
199*6a54128fSAndroid Build Coastguard Worker errcode_t quota_file_close(quota_ctx_t qctx, struct quota_handle *h);
200*6a54128fSAndroid Build Coastguard Worker 
201*6a54128fSAndroid Build Coastguard Worker /* Get empty quota structure */
202*6a54128fSAndroid Build Coastguard Worker struct dquot *get_empty_dquot(void);
203*6a54128fSAndroid Build Coastguard Worker 
204*6a54128fSAndroid Build Coastguard Worker errcode_t quota_inode_truncate(ext2_filsys fs, ext2_ino_t ino);
205*6a54128fSAndroid Build Coastguard Worker 
206*6a54128fSAndroid Build Coastguard Worker const char *quota_type2name(enum quota_type qtype);
207*6a54128fSAndroid Build Coastguard Worker ext2_ino_t quota_type2inum(enum quota_type qtype, struct ext2_super_block *);
208*6a54128fSAndroid Build Coastguard Worker 
209*6a54128fSAndroid Build Coastguard Worker void update_grace_times(struct dquot *q);
210*6a54128fSAndroid Build Coastguard Worker 
211*6a54128fSAndroid Build Coastguard Worker /* size for the buffer returned by quota_get_qf_name(); must be greater
212*6a54128fSAndroid Build Coastguard Worker    than maxlen of extensions[] and fmtnames[] (plus 2) found in quotaio.c */
213*6a54128fSAndroid Build Coastguard Worker #define QUOTA_NAME_LEN 16
214*6a54128fSAndroid Build Coastguard Worker 
215*6a54128fSAndroid Build Coastguard Worker const char *quota_get_qf_name(enum quota_type, int fmt, char *buf);
216*6a54128fSAndroid Build Coastguard Worker 
217*6a54128fSAndroid Build Coastguard Worker /* In mkquota.c */
218*6a54128fSAndroid Build Coastguard Worker errcode_t quota_init_context(quota_ctx_t *qctx, ext2_filsys fs,
219*6a54128fSAndroid Build Coastguard Worker 			     unsigned int qtype_bits);
220*6a54128fSAndroid Build Coastguard Worker void quota_data_inodes(quota_ctx_t qctx, struct ext2_inode_large *inode,
221*6a54128fSAndroid Build Coastguard Worker 		       ext2_ino_t ino, int adjust);
222*6a54128fSAndroid Build Coastguard Worker void quota_data_add(quota_ctx_t qctx, struct ext2_inode_large *inode,
223*6a54128fSAndroid Build Coastguard Worker 		    ext2_ino_t ino, qsize_t space);
224*6a54128fSAndroid Build Coastguard Worker void quota_data_sub(quota_ctx_t qctx, struct ext2_inode_large *inode,
225*6a54128fSAndroid Build Coastguard Worker 		    ext2_ino_t ino, qsize_t space);
226*6a54128fSAndroid Build Coastguard Worker errcode_t quota_write_inode(quota_ctx_t qctx, enum quota_type qtype);
227*6a54128fSAndroid Build Coastguard Worker /* Flags for quota_read_all_dquots() */
228*6a54128fSAndroid Build Coastguard Worker #define QREAD_USAGE  0x01
229*6a54128fSAndroid Build Coastguard Worker #define QREAD_LIMITS 0x02
230*6a54128fSAndroid Build Coastguard Worker errcode_t quota_read_all_dquots(quota_ctx_t qctx, ext2_ino_t qf_ino,
231*6a54128fSAndroid Build Coastguard Worker 				enum quota_type type, unsigned int flags);
232*6a54128fSAndroid Build Coastguard Worker errcode_t quota_compute_usage(quota_ctx_t qctx);
233*6a54128fSAndroid Build Coastguard Worker void quota_release_context(quota_ctx_t *qctx);
234*6a54128fSAndroid Build Coastguard Worker errcode_t quota_remove_inode(ext2_filsys fs, enum quota_type qtype);
235*6a54128fSAndroid Build Coastguard Worker int quota_file_exists(ext2_filsys fs, enum quota_type qtype);
236*6a54128fSAndroid Build Coastguard Worker void quota_set_sb_inum(ext2_filsys fs, ext2_ino_t ino, enum quota_type qtype);
237*6a54128fSAndroid Build Coastguard Worker errcode_t quota_compare_and_update(quota_ctx_t qctx, enum quota_type qtype,
238*6a54128fSAndroid Build Coastguard Worker 				   int *usage_inconsistent);
239*6a54128fSAndroid Build Coastguard Worker int parse_quota_opts(const char *opts, int (*func)(char *));
240*6a54128fSAndroid Build Coastguard Worker 
241*6a54128fSAndroid Build Coastguard Worker /* parse_qtype.c */
242*6a54128fSAndroid Build Coastguard Worker int parse_quota_types(const char *in_str, unsigned int *qtype_bits,
243*6a54128fSAndroid Build Coastguard Worker 		      char **err_token);
244*6a54128fSAndroid Build Coastguard Worker 
245*6a54128fSAndroid Build Coastguard Worker /*
246*6a54128fSAndroid Build Coastguard Worker  * Return pointer to reserved inode field in superblock for given quota type.
247*6a54128fSAndroid Build Coastguard Worker  *
248*6a54128fSAndroid Build Coastguard Worker  * This allows the caller to get or set the quota inode by type without the
249*6a54128fSAndroid Build Coastguard Worker  * need for the quota array to be contiguous in the superblock.
250*6a54128fSAndroid Build Coastguard Worker  */
quota_sb_inump(struct ext2_super_block * sb,enum quota_type qtype)251*6a54128fSAndroid Build Coastguard Worker static inline ext2_ino_t *quota_sb_inump(struct ext2_super_block *sb,
252*6a54128fSAndroid Build Coastguard Worker 					 enum quota_type qtype)
253*6a54128fSAndroid Build Coastguard Worker {
254*6a54128fSAndroid Build Coastguard Worker 	switch (qtype) {
255*6a54128fSAndroid Build Coastguard Worker 	case USRQUOTA:
256*6a54128fSAndroid Build Coastguard Worker 		return &sb->s_usr_quota_inum;
257*6a54128fSAndroid Build Coastguard Worker 	case GRPQUOTA:
258*6a54128fSAndroid Build Coastguard Worker 		return &sb->s_grp_quota_inum;
259*6a54128fSAndroid Build Coastguard Worker 	case PRJQUOTA:
260*6a54128fSAndroid Build Coastguard Worker 		return &sb->s_prj_quota_inum;
261*6a54128fSAndroid Build Coastguard Worker 	default:
262*6a54128fSAndroid Build Coastguard Worker 		return NULL;
263*6a54128fSAndroid Build Coastguard Worker 	}
264*6a54128fSAndroid Build Coastguard Worker 
265*6a54128fSAndroid Build Coastguard Worker 	return NULL;
266*6a54128fSAndroid Build Coastguard Worker }
267*6a54128fSAndroid Build Coastguard Worker 
268*6a54128fSAndroid Build Coastguard Worker #endif /* GUARD_QUOTAIO_H */
269