blob: 56aaf5f4c2b2253e01045e1b7d46aff62b5194af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
*
* Header file for disk format of new quotafile format
*
*/
#ifndef _DQBLK_V2_H
#define _DQBLK_V2_H
#include <sys/types.h>
#define Q_V2_GETQUOTA 0x0D00 /* Get limits and usage */
#define Q_V2_SETQUOTA 0x0E00 /* Set limits and usage */
#define Q_V2_GETINFO 0x0900 /* Get information about quota */
#define Q_V2_SETINFO 0x0A00 /* Set information about quota */
/* Structure for format specific information */
struct v2_mem_dqinfo {
uint dqi_flags; /* Flags set in quotafile */
uint dqi_blocks; /* Number of blocks in file */
uint dqi_free_blk; /* Number of first free block in the list */
uint dqi_free_entry; /* Number of first block with free entry in the list */
uint dqi_used_entries; /* Number of entries in file - updated by scan_dquots */
uint dqi_data_blocks; /* Number of data blocks in file - updated by scan_dquots */
};
struct v2_mem_dqblk {
loff_t dqb_off; /* Offset of dquot in file */
};
struct quotafile_ops; /* Will be defined later in quotaio.h */
/* Operations above this format */
extern struct quotafile_ops quotafile_ops_2;
#endif
|