X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=44c74e315a4b758ccdd7bb8055094014d395b12e;hp=92b3e5b2a4a78f50b669fb9312580d7124bbb9cf;hb=ad705bcb7e79a7cdb9891db17b4c40b13b6c30c3;hpb=73798eb297e4d4afa2f67d72eb2a3618592a1c4d diff --git a/init.c b/init.c index 92b3e5b2..44c74e31 100644 --- a/init.c +++ b/init.c @@ -560,6 +560,13 @@ static int fixup_options(struct thread_data *td) } } + if (!o->unit_base) { + if (td->io_ops->flags & FIO_BIT_BASED) + o->unit_base = 1; + else + o->unit_base = 8; + } + #ifndef CONFIG_FDATASYNC if (o->fdatasync_blocks) { log_info("fio: this platform does not support fdatasync()"