commit | ecc35cf45f60e658856c6f0cbd5b7785753981bb | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Mon Feb 06 22:00:06 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Feb 06 22:00:06 2012 +0100 |
tree | c1fe1a050ca71e889ae8a9c7546eadd48d2361f8 | |
parent | 52c580272d87d2b9b8a65d317bf7c2d432a30fec [diff] | |
parent | 5bd9c78ce361e3a924013299c53fd823fba05818 [diff] |
Merge branch 'master' of ssh://brick.kernel.dk/data/git/fio
diff --git a/io_u.c b/io_u.c index 54f8685..8a03348 100644 --- a/io_u.c +++ b/io_u.c
@@ -377,6 +377,12 @@ if (minbs == maxbs) return minbs; + /* + * If we can't satisfy the min block size from here, then fail + */ + if (!io_u_fits(td, io_u, minbs)) + return 0; + if (td->o.use_os_rand) rand_max = OS_RAND_MAX; else