From 10b023db64eeb686eabdfa84faea45795ac8c34c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 23 Mar 2012 13:40:06 +0100 Subject: [PATCH] Allow readwrite as an alias for rw in setting sequential read/write Signed-off-by: Jens Axboe --- HOWTO | 2 +- fio.1 | 2 +- options.c | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HOWTO b/HOWTO index e4614ea8..5622349f 100644 --- a/HOWTO +++ b/HOWTO @@ -310,7 +310,7 @@ rw=str Type of io pattern. Accepted values are: write Sequential writes randwrite Random writes randread Random reads - rw Sequential mixed reads and writes + rw,readwrite Sequential mixed reads and writes randrw Random mixed reads and writes For the mixed io types, the default is to split them 50/50. diff --git a/fio.1 b/fio.1 index c4c90b42..bcae37ba 100644 --- a/fio.1 +++ b/fio.1 @@ -195,7 +195,7 @@ Random reads. .B randwrite Random writes. .TP -.B rw +.B rw, readwrite Mixed sequential reads and writes. .TP .B randrw diff --git a/options.c b/options.c index 3de0221e..f8927ee8 100644 --- a/options.c +++ b/options.c @@ -944,6 +944,10 @@ static struct fio_option options[FIO_MAX_OPTS] = { .oval = TD_DDIR_RW, .help = "Sequential read and write mix", }, + { .ival = "readwrite", + .oval = TD_DDIR_RW, + .help = "Sequential read and write mix", + }, { .ival = "randrw", .oval = TD_DDIR_RANDRW, .help = "Random read and write mix" -- 2.25.1