Recent changes (master)

Jens Axboe
2014-07-23T12:00:05Z

The following changes since commit 908119302fbb900a449988d03dacc95426c09e08:

stat: move stat mutex grab to thread (2014-07-21 11:32:13 +0200)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 7ffa8930764e6ccc5bf036fe4d73f1d7276453e5:

verify: ensure that verify interval is smaller or equal to blocksize (2014-07-23 09:47:26 +0200)

----------------------------------------------------------------
Jens Axboe (1):
verify: ensure that verify interval is smaller or equal to blocksize

init.c | 9 +++++++++
1 file changed, 9 insertions(+)

---

Diff of recent changes:

diff --git a/init.c b/init.c
index cf1d7f9..b4a0cbb 100644
--- a/init.c
+++ b/init.c
@@ -635,6 +635,15 @@ static int fixup_options(struct thread_data *td)
if (o->max_bs[DDIR_WRITE] != o->min_bs[DDIR_WRITE] &&
!o->verify_interval)
o->verify_interval = o->min_bs[DDIR_WRITE];
+
+ /*
+ * Verify interval must be smaller or equal to the
+ * write size.
+ */
+ if (o->verify_interval > o->min_bs[DDIR_WRITE])
+ o->verify_interval = o->min_bs[DDIR_WRITE];
+ else if (td_read(td) && o->verify_interval > o->min_bs[DDIR_READ])
+ o->verify_interval = o->min_bs[DDIR_READ];
}

if (o->pre_read) {