blob: 1028431415e649af01e2457754a4944355f57a81 [file] [log] [blame]
chenhcb92c7f2014-04-02 13:01:01 -04001#include <glusterfs/api/glfs.h>
chenhcb92c7f2014-04-02 13:01:01 -04002#include "../fio.h"
3
4struct gf_options {
Jens Axboe6a605302014-10-29 08:30:07 -06005 void *pad;
Jens Axboef0343152014-05-19 19:53:03 -06006 char *gf_vol;
7 char *gf_brick;
chenhcb92c7f2014-04-02 13:01:01 -04008};
9
10struct gf_data {
Jens Axboef0343152014-05-19 19:53:03 -060011 glfs_t *fs;
12 glfs_fd_t *fd;
chenhcb92c7f2014-04-02 13:01:01 -040013 struct io_u **aio_events;
14};
15
16extern struct fio_option gfapi_options[];
17extern int fio_gf_setup(struct thread_data *td);
18extern void fio_gf_cleanup(struct thread_data *td);
19extern int fio_gf_get_file_size(struct thread_data *td, struct fio_file *f);
20extern int fio_gf_open_file(struct thread_data *td, struct fio_file *f);
21extern int fio_gf_close_file(struct thread_data *td, struct fio_file *f);
Castor Fu9187a262014-08-19 09:28:53 -070022extern int fio_gf_unlink_file(struct thread_data *td, struct fio_file *f);