projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Full readonly check
[fio.git]
/
engines
/
skeleton_external.c
diff --git
a/engines/skeleton_external.c
b/engines/skeleton_external.c
index 9000accf5e2d639f28f533993fed775519d3d2da..26dbedf6b9b4ad9ef506aad138c185cf49f8ef81 100644
(file)
--- a/
engines/skeleton_external.c
+++ b/
engines/skeleton_external.c
@@
-64,6
+64,11
@@
static int fio_skeleton_cancel(struct thread_data *td, struct io_u *io_u)
*/
static int fio_skeleton_queue(struct thread_data *td, struct io_u *io_u)
{
*/
static int fio_skeleton_queue(struct thread_data *td, struct io_u *io_u)
{
+ /*
+ * Double sanity check to catch errant write on a readonly setup
+ */
+ fio_ro_check(td, io_u);
+
/*
* Could return FIO_Q_QUEUED for a queued request,
* FIO_Q_COMPLETED for a completed request, and FIO_Q_BUSY
/*
* Could return FIO_Q_QUEUED for a queued request,
* FIO_Q_COMPLETED for a completed request, and FIO_Q_BUSY