summaryrefslogtreecommitdiff
path: root/quotaio_generic.h
blob: 5edc11cd947e5dfc536e5e08c2649d0ad784c356 (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
/*
 *
 *	Header file for communication with kernel generic interface
 *
 */

#ifndef GUARD_QUOTAIO_GENERIC_H
#define GUARD_QUOTAIO_GENERIC_H

#include "quotaio.h"

/* Get info from kernel to handle */
int vfs_get_info(struct quota_handle *h);

/* Set info in kernel from handle */
int vfs_set_info(struct quota_handle *h, int flags);

/* Get dquot from kernel */
int vfs_get_dquot(struct dquot *dquot);

/* Set dquot in kernel */
int vfs_set_dquot(struct dquot *dquot, int flags);

/* Generic routine for scanning dquots when quota format does not have
 * better way */
int generic_scan_dquots(struct quota_handle *h,
			int (*process_dquot)(struct dquot *dquot, char *dqname),
			int (*get_dquot)(struct dquot *dquot));

#endif