Commit | Line | Data |
---|---|---|
cc47f094 | 1 | #include <glusterfs/api/glfs.h> |
cc47f094 | 2 | #include "../fio.h" |
3 | ||
4 | struct gf_options { | |
b6b2626a JA |
5 | struct thread_data *td; |
6 | char *gf_vol; | |
7 | char *gf_brick; | |
cc47f094 | 8 | }; |
9 | ||
10 | struct gf_data { | |
b6b2626a JA |
11 | glfs_t *fs; |
12 | glfs_fd_t *fd; | |
cc47f094 | 13 | struct io_u **aio_events; |
14 | }; | |
15 | ||
16 | extern struct fio_option gfapi_options[]; | |
17 | extern int fio_gf_setup(struct thread_data *td); | |
18 | extern void fio_gf_cleanup(struct thread_data *td); | |
19 | extern int fio_gf_get_file_size(struct thread_data *td, struct fio_file *f); | |
20 | extern int fio_gf_open_file(struct thread_data *td, struct fio_file *f); | |
21 | extern int fio_gf_close_file(struct thread_data *td, struct fio_file *f); | |
38ef9c90 | 22 | extern int fio_gf_unlink_file(struct thread_data *td, struct fio_file *f); |