Add some more options for commands
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/HOWTO b/HOWTO
index c140393..460b456 100644
--- a/HOWTO
+++ b/HOWTO
@@ -216,6 +216,7 @@
opendir=str Tell fio to recursively add any file it can find in this
directory and down the file system tree.
+readwrite=str
rw=str Type of io pattern. Accepted values are:
read Sequential reads
@@ -244,6 +245,7 @@
and limited to 'size' in total (if that is given). If not
given, each created file is the same size.
+blocksize=siint
bs=siint The block size used for the io units. Defaults to 4k. Values
can be given for both read and writes. If a single siint is
given, it will apply to both. If a second siint is specified
@@ -254,6 +256,7 @@
can do so by passing an empty read size - bs=,8k will set
8k for writes and leave the read default value.
+blocksize_range=irange
bsrange=irange Instead of giving a single block size, specify a range
and fio will mix the issued io block sizes. The issued
io unit will always be a multiple of the minimum value
@@ -261,6 +264,7 @@
writes, however a second range can be given after a comma.
See bs=.
+blocksize_unaligned
bs_unaligned If this option is given, any byte size value within bsrange
may be used as a block range. This typically wont work with
direct IO, as that normally requires sector alignment.
@@ -452,6 +456,7 @@
sync=bool Use sync io for buffered writes. For the majority of the
io engines, this means using O_SYNC.
+iomem=str
mem=str Fio can use various types of memory as the io unit buffer.
The allowed values are:
diff --git a/options.c b/options.c
index f502247..81c864d 100644
--- a/options.c
+++ b/options.c
@@ -201,6 +201,7 @@
},
{
.name = "rw",
+ .alias = "readwrite",
.type = FIO_OPT_STR,
.off1 = td_var_offset(td_ddir),
.help = "IO direction",
@@ -318,6 +319,7 @@
},
{
.name = "bs",
+ .alias = "blocksize",
.type = FIO_OPT_STR_VAL_INT,
.off1 = td_var_offset(bs[DDIR_READ]),
.off2 = td_var_offset(bs[DDIR_WRITE]),
@@ -326,6 +328,7 @@
},
{
.name = "bsrange",
+ .alias = "blocksize_range",
.type = FIO_OPT_RANGE,
.off1 = td_var_offset(min_bs[DDIR_READ]),
.off2 = td_var_offset(max_bs[DDIR_READ]),
@@ -335,6 +338,7 @@
},
{
.name = "bs_unaligned",
+ .alias = "blocksize_unaligned",
.type = FIO_OPT_STR_SET,
.off1 = td_var_offset(bs_unaligned),
.help = "Don't sector align IO buffer sizes",
@@ -450,6 +454,7 @@
},
{
.name = "mem",
+ .alias = "iomem",
.type = FIO_OPT_STR,
.cb = str_mem_cb,
.off1 = td_var_offset(mem_type),