options: make the groups/categories constant
[fio.git] / engines / glusterfs_sync.c
index 938baf46d0eeac32ac9b7178ece129d8c17581a7..6de4ee292eee4e082b3011b544ce1735a8786785 100644 (file)
@@ -41,6 +41,10 @@ static int fio_gf_queue(struct thread_data *td, struct io_u *io_u)
                ret = glfs_read(g->fd, io_u->xfer_buf, io_u->xfer_buflen, 0);
        else if (io_u->ddir == DDIR_WRITE)
                ret = glfs_write(g->fd, io_u->xfer_buf, io_u->xfer_buflen, 0);
+       else if (io_u->ddir == DDIR_SYNC)
+               ret = glfs_fsync(g->fd);
+       else if (io_u->ddir == DDIR_DATASYNC)
+               ret = glfs_fdatasync(g->fd);
        else {
                log_err("unsupported operation.\n");
                return -EINVAL;
@@ -76,6 +80,7 @@ static struct ioengine_ops ioengine = {
        .queue = fio_gf_queue,
        .open_file = fio_gf_open_file,
        .close_file = fio_gf_close_file,
+       .unlink_file = fio_gf_unlink_file,
        .get_file_size = fio_gf_get_file_size,
        .options = gfapi_options,
        .option_struct_size = sizeof(struct gf_options),