rbd: various fixes and cleanups
[fio.git] / engines / gfapi.h
index d4738156a8ef01f2180ca1671d8a10a86e5ad057..0da471c7499b5e4811f7c289b0930e14959ba6ac 100644 (file)
@@ -1,16 +1,15 @@
 #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;
+       struct thread_data *td;
+       char *gf_vol;
+       char *gf_brick;
 };
 
 struct gf_data {
-    glfs_t *fs;
-    glfs_fd_t *fd;
+       glfs_t *fs;
+       glfs_fd_t *fd;
        struct io_u **aio_events;
 };
 
@@ -20,3 +19,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);