projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make I/O priority option generic for non-Linux environment [1/2]
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 519982394693cb0aa41fe612d08703640b843486..d2a029d14a3204f6906912f1a8dd8de458c3dbe5 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-3012,8
+3012,8
@@
struct fio_option fio_options[FIO_MAX_OPTS] = {
.type = FIO_OPT_INT,
.off1 = td_var_offset(ioprio),
.help = "Set job IO priority value",
.type = FIO_OPT_INT,
.off1 = td_var_offset(ioprio),
.help = "Set job IO priority value",
- .minval =
0
,
- .maxval =
7
,
+ .minval =
IOPRIO_MIN_PRIO
,
+ .maxval =
IOPRIO_MAX_PRIO
,
.interval = 1,
.category = FIO_OPT_C_GENERAL,
.group = FIO_OPT_G_CRED,
.interval = 1,
.category = FIO_OPT_C_GENERAL,
.group = FIO_OPT_G_CRED,
@@
-3024,8
+3024,8
@@
struct fio_option fio_options[FIO_MAX_OPTS] = {
.type = FIO_OPT_INT,
.off1 = td_var_offset(ioprio_class),
.help = "Set job IO priority class",
.type = FIO_OPT_INT,
.off1 = td_var_offset(ioprio_class),
.help = "Set job IO priority class",
- .minval =
0
,
- .maxval =
3
,
+ .minval =
IOPRIO_MIN_PRIO_CLASS
,
+ .maxval =
IOPRIO_MAX_PRIO_CLASS
,
.interval = 1,
.category = FIO_OPT_C_GENERAL,
.group = FIO_OPT_G_CRED,
.interval = 1,
.category = FIO_OPT_C_GENERAL,
.group = FIO_OPT_G_CRED,