paul@181 | 1 | /* |
paul@181 | 2 | * Header file for disk format of new quotafile format |
paul@181 | 3 | * |
paul@181 | 4 | * Jan Kara <jack@suse.cz> - sponsored by SuSE CR |
paul@181 | 5 | */ |
paul@181 | 6 | |
paul@181 | 7 | #ifndef __QUOTA_DQBLK_V2_H__ |
paul@181 | 8 | #define __QUOTA_DQBLK_V2_H__ |
paul@181 | 9 | |
paul@181 | 10 | #include "quotaio_tree.h" |
paul@181 | 11 | |
paul@181 | 12 | /* Structure for format specific information */ |
paul@181 | 13 | struct v2_mem_dqinfo { |
paul@181 | 14 | struct qtree_mem_dqinfo dqi_qtree; |
paul@181 | 15 | unsigned int dqi_flags; /* Flags set in quotafile */ |
paul@181 | 16 | unsigned int dqi_used_entries; /* Number of entries in file - |
paul@181 | 17 | updated by scan_dquots */ |
paul@181 | 18 | unsigned int dqi_data_blocks; /* Number of data blocks in file - |
paul@181 | 19 | updated by scan_dquots */ |
paul@181 | 20 | }; |
paul@181 | 21 | |
paul@181 | 22 | struct v2_mem_dqblk { |
paul@181 | 23 | long long dqb_off; /* Offset of dquot in file */ |
paul@181 | 24 | }; |
paul@181 | 25 | |
paul@181 | 26 | struct quotafile_ops; /* Will be defined later in quotaio.h */ |
paul@181 | 27 | |
paul@181 | 28 | /* Operations above this format */ |
paul@181 | 29 | extern struct quotafile_ops quotafile_ops_2; |
paul@181 | 30 | |
paul@181 | 31 | #endif /* __QUOTA_DQBLK_V2_H__ */ |