From dda13f44d6d97a2c0865f6fbfed70c45071592b3 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 15 Aug 2016 11:04:30 -0600 Subject: [PATCH] Option updates - Missing long name variants - libhdfs engine, use correct spelling for 'chunk', but retain the old spelling as an alias. Signed-off-by: Jens Axboe --- HOWTO | 2 +- engines/e4defrag.c | 2 ++ engines/libhdfs.c | 6 +++++- engines/net.c | 2 ++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/HOWTO b/HOWTO index 5bf71252..c1b768d2 100644 --- a/HOWTO +++ b/HOWTO @@ -1951,7 +1951,7 @@ be the starting port number since fio will use a range of ports. [mtd] skip_bad=bool Skip operations against known bad blocks. [libhdfs] hdfsdirectory libhdfs will create chunk in this HDFS directory -[libhdfs] chunck_size the size of the chunck to use for each file. +[libhdfs] chunk_size the size of the chunk to use for each file. 6.0 Interpreting the output diff --git a/engines/e4defrag.c b/engines/e4defrag.c index c599c986..01b084e9 100644 --- a/engines/e4defrag.c +++ b/engines/e4defrag.c @@ -45,6 +45,7 @@ struct e4defrag_options { static struct fio_option options[] = { { .name = "donorname", + .lname = "Donor Name", .type = FIO_OPT_STR_STORE, .off1 = offsetof(struct e4defrag_options, donor_name), .help = "File used as a block donor", @@ -53,6 +54,7 @@ static struct fio_option options[] = { }, { .name = "inplace", + .name = "In Place", .type = FIO_OPT_INT, .off1 = offsetof(struct e4defrag_options, inplace), .minval = 0, diff --git a/engines/libhdfs.c b/engines/libhdfs.c index fba17c4f..96a0871d 100644 --- a/engines/libhdfs.c +++ b/engines/libhdfs.c @@ -80,7 +80,9 @@ static struct fio_option options[] = { .group = FIO_OPT_G_HDFS, }, { - .name = "chunck_size", + .name = "chunk_size", + .alias = "chunck_size", + .lname = "Chunk size", .type = FIO_OPT_INT, .off1 = offsetof(struct hdfsio_options, chunck_size), .def = "1048576", @@ -90,6 +92,7 @@ static struct fio_option options[] = { }, { .name = "single_instance", + .lname = "Single Instance", .type = FIO_OPT_BOOL, .off1 = offsetof(struct hdfsio_options, single_instance), .def = "1", @@ -99,6 +102,7 @@ static struct fio_option options[] = { }, { .name = "hdfs_use_direct", + .lname = "HDFS Use Direct", .type = FIO_OPT_BOOL, .off1 = offsetof(struct hdfsio_options, use_direct), .def = "0", diff --git a/engines/net.c b/engines/net.c index f24efc1d..5f1401c6 100644 --- a/engines/net.c +++ b/engines/net.c @@ -135,6 +135,7 @@ static struct fio_option options[] = { #ifdef CONFIG_TCP_NODELAY { .name = "nodelay", + .lname = "No Delay", .type = FIO_OPT_BOOL, .off1 = offsetof(struct netio_options, nodelay), .help = "Use TCP_NODELAY on TCP connections", @@ -153,6 +154,7 @@ static struct fio_option options[] = { }, { .name = "pingpong", + .lname = "Ping Pong", .type = FIO_OPT_STR_SET, .off1 = offsetof(struct netio_options, pingpong), .help = "Ping-pong IO requests", -- 2.25.1