glusterfs: update for new API
[fio.git] / engines / gfapi.h
index d4738156a8ef01f2180ca1671d8a10a86e5ad057..e4cdbcbc51e62d44a53cdeb4278f5393be884dbe 100644 (file)
@@ -1,16 +1,16 @@
 #include <glusterfs/api/glfs.h>
-#include <glusterfs/api/glfs-handles.h>
 #include "../fio.h"
 
 struct gf_options {
-    struct thread_data *td;
-    char *gf_vol;
-    char *gf_brick;
+       void *pad;
+       char *gf_vol;
+       char *gf_brick;
+       int gf_single_instance;
 };
 
 struct gf_data {
-    glfs_t *fs;
-    glfs_fd_t *fd;
+       glfs_t *fs;
+       glfs_fd_t *fd;
        struct io_u **aio_events;
 };
 
@@ -20,3 +20,4 @@ extern void fio_gf_cleanup(struct thread_data *td);
 extern int fio_gf_get_file_size(struct thread_data *td, struct fio_file *f);
 extern int fio_gf_open_file(struct thread_data *td, struct fio_file *f);
 extern int fio_gf_close_file(struct thread_data *td, struct fio_file *f);
+extern int fio_gf_unlink_file(struct thread_data *td, struct fio_file *f);