Add support for inverse options
Options that are tied to each other, meaning that if one is
incremented by X, the other is decremented by X automatically.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/options.c b/options.c
index 8681c21..635779d 100644
--- a/options.c
+++ b/options.c
@@ -2124,6 +2124,7 @@
.help = "Percentage of mixed workload that is reads",
.def = "50",
.interval = 5,
+ .inverse = "rwmixwrite",
.category = FIO_OPT_C_IO,
.group = FIO_OPT_G_RWMIX,
},
@@ -2136,6 +2137,7 @@
.help = "Percentage of mixed workload that is writes",
.def = "50",
.interval = 5,
+ .inverse = "rwmixread",
.category = FIO_OPT_C_IO,
.group = FIO_OPT_G_RWMIX,
},