From 2170e661d005948c3ae568cd8035513dc9187e40 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 2 Jan 2018 21:08:08 +0530 Subject: performance/io-threads: volume option fixes for GD2 Updates #302 Change-Id: I7145e46ed649f8e69118f164709f7131b7e580be Signed-off-by: Pranith Kumar K --- xlators/performance/io-threads/src/io-threads.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'xlators/performance') diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c index 7fc153dddeb..f89c9d49f2d 100644 --- a/xlators/performance/io-threads/src/io-threads.c +++ b/xlators/performance/io-threads/src/io-threads.c @@ -1186,6 +1186,10 @@ struct volume_options options[] = { .min = IOT_MIN_THREADS, .max = IOT_MAX_THREADS, .default_value = "16", + .op_version = {1}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC, + .tags = {"io-threads"}, + /*.option = "thread-count"*/ .description = "Number of threads in IO threads translator which " "perform concurrent IO operations" @@ -1195,6 +1199,9 @@ struct volume_options options[] = { .min = IOT_MIN_THREADS, .max = IOT_MAX_THREADS, .default_value = "16", + .op_version = {1}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC, + .tags = {"io-threads"}, .description = "Max number of threads in IO threads translator which " "perform high priority IO operations at a given time" @@ -1204,6 +1211,9 @@ struct volume_options options[] = { .min = IOT_MIN_THREADS, .max = IOT_MAX_THREADS, .default_value = "16", + .op_version = {1}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC, + .tags = {"io-threads"}, .description = "Max number of threads in IO threads translator which " "perform normal priority IO operations at a given time" @@ -1213,6 +1223,9 @@ struct volume_options options[] = { .min = IOT_MIN_THREADS, .max = IOT_MAX_THREADS, .default_value = "16", + .op_version = {1}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC, + .tags = {"io-threads"}, .description = "Max number of threads in IO threads translator which " "perform low priority IO operations at a given time" @@ -1222,12 +1235,18 @@ struct volume_options options[] = { .min = IOT_MIN_THREADS, .max = IOT_MAX_THREADS, .default_value = "1", + .op_version = {1}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC, + .tags = {"io-threads"}, .description = "Max number of threads in IO threads translator which " "perform least priority IO operations at a given time" }, { .key = {"enable-least-priority"}, .type = GF_OPTION_TYPE_BOOL, .default_value = "on", + .op_version = {1}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC, + .tags = {"io-threads"}, .description = "Enable/Disable least priority" }, {.key = {"idle-time"}, -- cgit