gfio: apply inverse options to buffered/direct
For these, we'd ideally use radio buttons instead. But hard to
pass that info from the options structure, so lets just punt
to inverse check buttons for now.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/options.c b/options.c
index 1b0117e..88b9142 100644
--- a/options.c
+++ b/options.c
@@ -1596,6 +1596,7 @@
.off1 = td_var_offset(odirect),
.help = "Use O_DIRECT IO (negates buffered)",
.def = "0",
+ .inverse = "buffered",
.category = FIO_OPT_C_IO,
.group = FIO_OPT_G_INVALID,
},
@@ -1607,6 +1608,7 @@
.neg = 1,
.help = "Use buffered IO (negates direct)",
.def = "1",
+ .inverse = "direct",
.category = FIO_OPT_C_IO,
.group = FIO_OPT_G_INVALID,
},