projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
implement 'unit_base' option to select between KB and Kbit et. al.
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 92b3e5b2a4a78f50b669fb9312580d7124bbb9cf..44c74e315a4b758ccdd7bb8055094014d395b12e 100644
(file)
--- 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()"