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