/*
* Generate a value, v, between 1 and 100, both inclusive
*/
/*
* Generate a value, v, between 1 and 100, both inclusive
*/
/*
* Generate a value, v, between 1 and 100, both inclusive
*/
/*
* Generate a value, v, between 1 and 100, both inclusive
*/
if (!get_next_rand_offset(td, f, ddir, b))
return 0;
if (!get_next_rand_offset(td, f, ddir, b))
return 0;
}
dprint(FD_IO, "%s: rand offset failed, last=%llu, size=%llu\n",
}
dprint(FD_IO, "%s: rand offset failed, last=%llu, size=%llu\n",
* Wrap from the beginning, if we exceed the file size
*/
if (f->file_offset >= f->real_file_size)
* Wrap from the beginning, if we exceed the file size
*/
if (f->file_offset >= f->real_file_size)
- * If zone_size > zone_range, then maintain the same zone until
- * zone_bytes >= zone_size.
- */
+ * If zone_size > zone_range, then maintain the same zone until
+ * zone_bytes >= zone_size.
+ */
if (f->last_pos[io_u->ddir] >= (f->file_offset + td->o.zone_range)) {
dprint(FD_IO, "io_u maintain zone offset=%" PRIu64 "/last_pos=%" PRIu64 "\n",
f->file_offset, f->last_pos[io_u->ddir]);
if (f->last_pos[io_u->ddir] >= (f->file_offset + td->o.zone_range)) {
dprint(FD_IO, "io_u maintain zone offset=%" PRIu64 "/last_pos=%" PRIu64 "\n",
f->file_offset, f->last_pos[io_u->ddir]);
* For random: if 'norandommap' is not set and zone_size > zone_range,
* map needs to be reset as it's done with zone_range everytime.
*/
* For random: if 'norandommap' is not set and zone_size > zone_range,
* map needs to be reset as it's done with zone_range everytime.
*/