Update to 4.01.
[profile/ivi/quota.git] / quotaio_generic.h
1 /*
2  *
3  *      Header file for communication with kernel generic interface
4  *
5  */
6
7 #ifndef GUARD_QUOTAIO_GENERIC_H
8 #define GUARD_QUOTAIO_GENERIC_H
9
10 #include "quotaio.h"
11
12 /* Get info from kernel to handle */
13 int vfs_get_info(struct quota_handle *h);
14
15 /* Set info in kernel from handle */
16 int vfs_set_info(struct quota_handle *h, int flags);
17
18 /* Get dquot from kernel */
19 int vfs_get_dquot(struct dquot *dquot);
20
21 /* Set dquot in kernel */
22 int vfs_set_dquot(struct dquot *dquot, int flags);
23
24 /* Generic routine for scanning dquots when quota format does not have
25  * better way */
26 int generic_scan_dquots(struct quota_handle *h,
27                         int (*process_dquot)(struct dquot *dquot, char *dqname),
28                         int (*get_dquot)(struct dquot *dquot));
29
30 #endif