blob: d12512a6a9934a8801e3aa368969304431cc97b9 [file] [log] [blame]
Aditya Kalif239fef2011-07-20 11:40:02 -07001/*
2 * Header file for disk format of new quotafile format
3 *
4 * Jan Kara <jack@suse.cz> - sponsored by SuSE CR
5 */
6
7#ifndef __QUOTA_DQBLK_V2_H__
8#define __QUOTA_DQBLK_V2_H__
9
Aditya Kalif239fef2011-07-20 11:40:02 -070010#include "quotaio_tree.h"
11
Aditya Kalif239fef2011-07-20 11:40:02 -070012/* Structure for format specific information */
13struct v2_mem_dqinfo {
14 struct qtree_mem_dqinfo dqi_qtree;
Jan Kara2ae58b62012-06-04 12:51:55 -040015 unsigned int dqi_flags; /* Flags set in quotafile */
16 unsigned int dqi_used_entries; /* Number of entries in file -
17 updated by scan_dquots */
18 unsigned int dqi_data_blocks; /* Number of data blocks in file -
19 updated by scan_dquots */
Aditya Kalif239fef2011-07-20 11:40:02 -070020};
21
22struct v2_mem_dqblk {
Andreas Dilger6b56f3d2011-09-24 12:59:31 -040023 long long dqb_off; /* Offset of dquot in file */
Aditya Kalif239fef2011-07-20 11:40:02 -070024};
25
26struct quotafile_ops; /* Will be defined later in quotaio.h */
27
28/* Operations above this format */
29extern struct quotafile_ops quotafile_ops_2;
30
31#endif /* __QUOTA_DQBLK_V2_H__ */