X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=io_u.c;h=04320794337454c3b5b2e0bdae115fd613273e42;hb=bb8895e07c6d6417410545f45d34b1b7916cd90a;hp=2605ece98b32025a754f52ca301522dc62d0fc68;hpb=076efc7c60c351df783960a646e7fe8fba29dc19;p=fio.git diff --git a/io_u.c b/io_u.c index 2605ece9..04320794 100644 --- a/io_u.c +++ b/io_u.c @@ -91,6 +91,8 @@ static int get_next_offset(struct thread_data *td, struct fio_file *f, do { r = os_random_long(&td->random_state); b = ((max_blocks - 1) * r / (unsigned long long) (RAND_MAX+1.0)); + if (td->norandommap) + break; rb = b + (f->file_offset / td->min_bs); loops--; } while (!random_map_free(td, f, rb) && loops); @@ -277,7 +279,7 @@ struct io_u *get_io_u(struct thread_data *td, struct fio_file *f) return NULL; } - if (!td->read_iolog && !td->sequential) + if (!td->read_iolog && !td->sequential && !td->norandommap) mark_random_map(td, f, io_u); f->last_pos += io_u->buflen;