From 8efa3ee675a991410c6aa27dce40d4dd441d0935 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Sat, 6 Jan 2018 02:53:15 +0100 Subject: performance/read-ahead: volume option fixes for GD2 Updates #302 Change-Id: I842ab746502bc4ff3b312ee19f397a6177edc6f7 Signed-off-by: Csaba Henk --- xlators/performance/read-ahead/src/read-ahead.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xlators') diff --git a/xlators/performance/read-ahead/src/read-ahead.c b/xlators/performance/read-ahead/src/read-ahead.c index 242b57971a0..a6c2a68b32e 100644 --- a/xlators/performance/read-ahead/src/read-ahead.c +++ b/xlators/performance/read-ahead/src/read-ahead.c @@ -1257,6 +1257,8 @@ struct xlator_dumpops dumpops = { struct volume_options options[] = { { .key = {"force-atime-update"}, .type = GF_OPTION_TYPE_BOOL, + .op_version = {1}, + .tags = {"read-ahead"}, .default_value = "false" }, { .key = {"page-count"}, @@ -1264,6 +1266,8 @@ struct volume_options options[] = { .min = 1, .max = 16, .default_value = "4", + .op_version = {1}, + .tags = {"read-ahead"}, .description = "Number of pages that will be pre-fetched" }, { .key = {"page-size"}, @@ -1271,6 +1275,9 @@ struct volume_options options[] = { .min = 4096, .max = 1048576 * 64, .default_value = "131072", + .op_version = {1}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC | OPT_FLAG_CLIENT_OPT, + .tags = {"read-ahead"}, .description = "Page size with which read-ahead performs server I/O" }, { .key = {NULL} }, -- cgit