Home
last modified time | relevance | path

Searched refs:quota_handle (Results 1 – 13 of 13) sorted by relevance

/third_party/e2fsprogs/lib/support/
Dquotaio.h68 struct quota_handle *quota_file[MAXQUOTAS];
119 struct quota_handle { struct
153 struct quota_handle *dq_h; /* Handle of quotafile for this dquot */ argument
162 int (*check_file) (struct quota_handle *h, int type, int fmt);
164 int (*init_io) (struct quota_handle *h);
166 int (*new_io) (struct quota_handle *h);
168 int (*end_io) (struct quota_handle *h);
170 int (*write_info) (struct quota_handle *h);
172 struct dquot *(*read_dquot) (struct quota_handle *h, qid_t id);
176 int (*scan_dquots) (struct quota_handle *h,
[all …]
Dquotaio_v2.c21 static int v2_check_file(struct quota_handle *h, int type, int fmt);
22 static int v2_init_io(struct quota_handle *h);
23 static int v2_new_io(struct quota_handle *h);
24 static int v2_write_info(struct quota_handle *h);
25 static struct dquot *v2_read_dquot(struct quota_handle *h, qid_t id);
27 static int v2_scan_dquots(struct quota_handle *h,
31 static int v2_report(struct quota_handle *h, int verbose);
138 static int v2_read_header(struct quota_handle *h, struct v2_disk_dqheader *dqh) in v2_read_header()
150 static int v2_check_file(struct quota_handle *h, int type, int fmt) in v2_check_file()
175 static int v2_init_io(struct quota_handle *h) in v2_init_io()
[all …]
Dquotaio_tree.c56 static inline void mark_quotafile_info_dirty(struct quota_handle *h) in mark_quotafile_info_dirty()
62 static void read_blk(struct quota_handle *h, unsigned int blk, dqbuf_t buf) in read_blk()
75 static int write_blk(struct quota_handle *h, unsigned int blk, dqbuf_t buf) in write_blk()
89 static int get_free_dqblk(struct quota_handle *h) in get_free_dqblk()
120 static void put_free_dqblk(struct quota_handle *h, dqbuf_t buf, in put_free_dqblk()
135 static void remove_free_dqentry(struct quota_handle *h, dqbuf_t buf, in remove_free_dqentry()
169 static void insert_free_dqentry(struct quota_handle *h, dqbuf_t buf, in insert_free_dqentry()
194 static unsigned int find_free_dqentry(struct quota_handle *h, in find_free_dqentry()
252 static int do_insert_tree(struct quota_handle *h, struct dquot *dquot, in do_insert_tree()
305 static void dq_insert_tree(struct quota_handle *h, struct dquot *dquot) in dq_insert_tree()
[all …]
Dquotaio_tree.h33 struct quota_handle;
56 struct dquot *qtree_read_dquot(struct quota_handle *h, qid_t id);
59 int qtree_scan_dquots(struct quota_handle *h,
Dmkquota.c147 static void write_dquots(dict_t *dict, struct quota_handle *qh) in write_dquots()
169 struct quota_handle *h = NULL; in quota_write_inode()
176 retval = ext2fs_get_mem(sizeof(struct quota_handle), &h); in quota_write_inode()
577 static errcode_t quota_read_all_dquots(struct quota_handle *qh, in quota_read_all_dquots()
595 static errcode_t quota_write_all_dquots(struct quota_handle *qh,
617 struct quota_handle *qh; in quota_update_limits()
623 err = ext2fs_get_mem(sizeof(struct quota_handle), &qh); in quota_update_limits()
657 struct quota_handle qh; in quota_compare_and_update()
Dquotaio.c188 errcode_t quota_file_open(quota_ctx_t qctx, struct quota_handle *h, in quota_file_open()
227 err = ext2fs_get_mem(sizeof(struct quota_handle), &h); in quota_file_open()
309 errcode_t quota_file_create(struct quota_handle *h, ext2_filsys fs, in quota_file_create()
381 errcode_t quota_file_close(quota_ctx_t qctx, struct quota_handle *h) in quota_file_close()
/third_party/f2fs-tools/fsck/
Dquotaio.h71 struct quota_handle *quota_file[MAXQUOTAS];
123 struct quota_handle { struct
157 struct quota_handle *dq_h; /* Handle of quotafile for this dquot */ argument
166 int (*check_file) (struct quota_handle *h, int type);
168 int (*init_io) (struct quota_handle *h, enum quota_type qtype);
170 int (*new_io) (struct quota_handle *h);
172 int (*end_io) (struct quota_handle *h);
174 int (*write_info) (struct quota_handle *h);
176 struct dquot *(*read_dquot) (struct quota_handle *h, qid_t id);
180 int (*scan_dquots) (struct quota_handle *h,
[all …]
Dquotaio_v2.c22 static int v2_check_file(struct quota_handle *h, int type);
23 static int v2_init_io(struct quota_handle *h, enum quota_type qtype);
24 static int v2_new_io(struct quota_handle *h);
25 static int v2_write_info(struct quota_handle *h);
26 static struct dquot *v2_read_dquot(struct quota_handle *h, qid_t id);
28 static int v2_scan_dquots(struct quota_handle *h,
32 static int v2_report(struct quota_handle *h, int verbose);
139 static int v2_read_header(struct quota_handle *h, struct v2_disk_dqheader *dqh) in v2_read_header()
151 static int v2_check_file(struct quota_handle *h, int type) in v2_check_file()
173 static int v2_init_io(struct quota_handle *h, enum quota_type qtype) in v2_init_io()
[all …]
Dquotaio_tree.c57 static inline void mark_quotafile_info_dirty(struct quota_handle *h) in mark_quotafile_info_dirty()
63 static void read_blk(struct quota_handle *h, unsigned int blk, dqbuf_t buf) in read_blk()
76 static int write_blk(struct quota_handle *h, unsigned int blk, dqbuf_t buf) in write_blk()
90 static int get_free_dqblk(struct quota_handle *h) in get_free_dqblk()
121 static void put_free_dqblk(struct quota_handle *h, dqbuf_t buf, in put_free_dqblk()
136 static void remove_free_dqentry(struct quota_handle *h, dqbuf_t buf, in remove_free_dqentry()
169 static void insert_free_dqentry(struct quota_handle *h, dqbuf_t buf, in insert_free_dqentry()
194 static unsigned int find_free_dqentry(struct quota_handle *h, in find_free_dqentry()
252 static int do_insert_tree(struct quota_handle *h, struct dquot *dquot, in do_insert_tree()
307 static int dq_insert_tree(struct quota_handle *h, struct dquot *dquot) in dq_insert_tree()
[all …]
Dquotaio_tree.h39 struct quota_handle;
62 struct dquot *qtree_read_dquot(struct quota_handle *h, qid_t id);
65 int qtree_scan_dquots(struct quota_handle *h,
Dquotaio.c105 errcode_t quota_file_open(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_open()
125 err = quota_get_mem(sizeof(struct quota_handle), &h); in quota_file_open()
165 errcode_t quota_file_create(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_create()
196 errcode_t quota_file_close(struct f2fs_sb_info *sbi, struct quota_handle *h, in quota_file_close()
Dmkquota.c45 static int write_dquots(dict_t *dict, struct quota_handle *qh) in write_dquots()
71 struct quota_handle *h = NULL; in quota_write_inode()
78 retval = quota_get_mem(sizeof(struct quota_handle), &h); in quota_write_inode()
368 struct quota_handle qh; in quota_compare_and_update()
/third_party/e2fsprogs/debugfs/
Dquota.c110 struct quota_handle *qh; in do_list_quota()
139 struct quota_handle *qh; in do_get_quota()