xref: /aosp_15_r20/external/e2fsprogs/lib/support/dqblk_v2.h (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker /*
2*6a54128fSAndroid Build Coastguard Worker  * Header file for disk format of new quotafile format
3*6a54128fSAndroid Build Coastguard Worker  *
4*6a54128fSAndroid Build Coastguard Worker  * Jan Kara <[email protected]> - sponsored by SuSE CR
5*6a54128fSAndroid Build Coastguard Worker  */
6*6a54128fSAndroid Build Coastguard Worker 
7*6a54128fSAndroid Build Coastguard Worker #ifndef __QUOTA_DQBLK_V2_H__
8*6a54128fSAndroid Build Coastguard Worker #define __QUOTA_DQBLK_V2_H__
9*6a54128fSAndroid Build Coastguard Worker 
10*6a54128fSAndroid Build Coastguard Worker #include "quotaio_tree.h"
11*6a54128fSAndroid Build Coastguard Worker 
12*6a54128fSAndroid Build Coastguard Worker /* Structure for format specific information */
13*6a54128fSAndroid Build Coastguard Worker struct v2_mem_dqinfo {
14*6a54128fSAndroid Build Coastguard Worker 	struct qtree_mem_dqinfo dqi_qtree;
15*6a54128fSAndroid Build Coastguard Worker 	unsigned int dqi_flags;		/* Flags set in quotafile */
16*6a54128fSAndroid Build Coastguard Worker 	unsigned int dqi_used_entries;	/* Number of entries in file -
17*6a54128fSAndroid Build Coastguard Worker 					   updated by scan_dquots */
18*6a54128fSAndroid Build Coastguard Worker 	unsigned int dqi_data_blocks;	/* Number of data blocks in file -
19*6a54128fSAndroid Build Coastguard Worker 					   updated by scan_dquots */
20*6a54128fSAndroid Build Coastguard Worker };
21*6a54128fSAndroid Build Coastguard Worker 
22*6a54128fSAndroid Build Coastguard Worker struct v2_mem_dqblk {
23*6a54128fSAndroid Build Coastguard Worker 	long long dqb_off;	/* Offset of dquot in file */
24*6a54128fSAndroid Build Coastguard Worker };
25*6a54128fSAndroid Build Coastguard Worker 
26*6a54128fSAndroid Build Coastguard Worker struct quotafile_ops;		/* Will be defined later in quotaio.h */
27*6a54128fSAndroid Build Coastguard Worker 
28*6a54128fSAndroid Build Coastguard Worker /* Operations above this format */
29*6a54128fSAndroid Build Coastguard Worker extern struct quotafile_ops quotafile_ops_2;
30*6a54128fSAndroid Build Coastguard Worker 
31*6a54128fSAndroid Build Coastguard Worker #endif  /* __QUOTA_DQBLK_V2_H__ */
32