X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fglusterfs_sync.c;h=de73261f6c88fbc4778d5f2b45e9447b40bcb7d8;hp=099a5af10406a4da4f2d7158df2df28881456f6d;hb=ce4d13ca162df4127ec3b5911553802c53396705;hpb=de5ed0e4d398bc9d4576f9b2b82d7686989c27e1 diff --git a/engines/glusterfs_sync.c b/engines/glusterfs_sync.c index 099a5af1..de73261f 100644 --- a/engines/glusterfs_sync.c +++ b/engines/glusterfs_sync.c @@ -42,9 +42,17 @@ static enum fio_q_status fio_gf_queue(struct thread_data *td, struct io_u *io_u) 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) +#if defined(CONFIG_GF_NEW_API) + ret = glfs_fsync(g->fd, NULL, NULL); +#else ret = glfs_fsync(g->fd); +#endif else if (io_u->ddir == DDIR_DATASYNC) +#if defined(CONFIG_GF_NEW_API) + ret = glfs_fdatasync(g->fd, NULL, NULL); +#else ret = glfs_fdatasync(g->fd); +#endif else { log_err("unsupported operation.\n"); io_u->error = EINVAL;