chenh | cb92c7f | 2014-04-02 13:01:01 -0400 | [diff] [blame] | 1 | #include <glusterfs/api/glfs.h> |
chenh | cb92c7f | 2014-04-02 13:01:01 -0400 | [diff] [blame] | 2 | #include "../fio.h" |
| 3 | |
| 4 | struct gf_options { |
Jens Axboe | 6a60530 | 2014-10-29 08:30:07 -0600 | [diff] [blame] | 5 | void *pad; |
Jens Axboe | f034315 | 2014-05-19 19:53:03 -0600 | [diff] [blame] | 6 | char *gf_vol; |
| 7 | char *gf_brick; |
chenh | cb92c7f | 2014-04-02 13:01:01 -0400 | [diff] [blame] | 8 | }; |
| 9 | |
| 10 | struct gf_data { |
Jens Axboe | f034315 | 2014-05-19 19:53:03 -0600 | [diff] [blame] | 11 | glfs_t *fs; |
| 12 | glfs_fd_t *fd; |
chenh | cb92c7f | 2014-04-02 13:01:01 -0400 | [diff] [blame] | 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); |
Castor Fu | 9187a26 | 2014-08-19 09:28:53 -0700 | [diff] [blame] | 22 | extern int fio_gf_unlink_file(struct thread_data *td, struct fio_file *f); |