projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fio 1.40
[fio.git]
/
engines
/
solarisaio.c
diff --git
a/engines/solarisaio.c
b/engines/solarisaio.c
index d499f5749ffd7fb51e0b55e881162bc38e43fa59..069cda5347c903d9f458772508b2f6eed0d2fc39 100644
(file)
--- a/
engines/solarisaio.c
+++ b/
engines/solarisaio.c
@@
-62,7
+62,7
@@
static void wait_for_event(struct timeval *tv)
io_u->resid = io_u->xfer_buflen - io_u->resultp.aio_return;
io_u->error = 0;
} else
io_u->resid = io_u->xfer_buflen - io_u->resultp.aio_return;
io_u->error = 0;
} else
- io_u->error = io_u->resultp.aio_
return
;
+ io_u->error = io_u->resultp.aio_
errno
;
/*
* For SIGIO, we need a write barrier between the two, so that
/*
* For SIGIO, we need a write barrier between the two, so that
@@
-126,6
+126,15
@@
static int fio_solarisaio_queue(struct thread_data fio_unused *td,
return FIO_Q_COMPLETED;
}
return FIO_Q_COMPLETED;
}
+ if (io_u->ddir == DDIR_DATASYNC) {
+ if (sd->nr)
+ return FIO_Q_BUSY;
+ if (fdatasync(f->fd) < 0)
+ io_u->error = errno;
+
+ return FIO_Q_COMPLETED;
+ }
+
if (sd->nr == sd->max_depth)
return FIO_Q_BUSY;
if (sd->nr == sd->max_depth)
return FIO_Q_BUSY;
@@
-213,6
+222,7
@@
static struct ioengine_ops ioengine = {
.cleanup = fio_solarisaio_cleanup,
.open_file = generic_open_file,
.close_file = generic_close_file,
.cleanup = fio_solarisaio_cleanup,
.open_file = generic_open_file,
.close_file = generic_close_file,
+ .get_file_size = generic_get_file_size,
};
#else /* FIO_HAVE_SOLARISAIO */
};
#else /* FIO_HAVE_SOLARISAIO */