Check for syscall definitions, before declaring __weak helper
[fio.git] / engines / posixaio.c
index db11edb04fb7b9bbfa965f05365480a462743a31..70282f2975f660185fa832dcbf868850e011f0a1 100644 (file)
@@ -175,9 +175,7 @@ static int fio_posixaio_queue(struct thread_data fio_unused *td,
                if (pd->queued)
                        return FIO_Q_BUSY;
 
-               if (fsync(io_u->file->fd) < 0)
-                       io_u->error = errno;
-
+               do_io_u_sync(td, io_u);
                return FIO_Q_COMPLETED;
 #endif
        }
@@ -226,6 +224,7 @@ static struct ioengine_ops ioengine = {
        .cleanup        = fio_posixaio_cleanup,
        .open_file      = generic_open_file,
        .close_file     = generic_close_file,
+       .get_file_size  = generic_get_file_size,
 };
 
 #else /* FIO_HAVE_POSIXAIO */