From 377eb7c1f8d661405d80f38af2048b588d414ae9 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Mon, 8 Jul 2013 16:06:31 +0530 Subject: glusterd: Correct op-version of some options Some of the options have been backported to release-3.3 branch and hence should have their op-version reduced. Some other options had op-version incorrectly set as 1. Change-Id: If40325b7b2da7aa36f90261024117cd18cf51ef0 BUG: 981278 Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.org/5320 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/mgmt/glusterd/src/glusterd-volume-set.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index cca1f9f49..df3aa9639 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -376,7 +376,7 @@ struct volopt_map_entry glusterd_volopt_map[] = { }, { .key = "cluster.readdir-optimize", .voltype = "cluster/distribute", - .op_version = 2, + .op_version = 1, .flags = OPT_FLAG_CLIENT_OPT }, { .key = "cluster.nufa", @@ -518,7 +518,7 @@ struct volopt_map_entry glusterd_volopt_map[] = { { .key = "cluster.stripe-coalesce", .voltype = "cluster/stripe", .option = "coalesce", - .op_version = 2, + .op_version = 1, .flags = OPT_FLAG_CLIENT_OPT }, @@ -620,11 +620,11 @@ struct volopt_map_entry glusterd_volopt_map[] = { }, { .key = "performance.enable-least-priority", .voltype = "performance/io-threads", - .op_version = 2 + .op_version = 1 }, { .key = "performance.least-rate-limit", .voltype = "performance/io-threads", - .op_version = 1 + .op_version = 2 }, /* Other perf xlators' options */ @@ -708,7 +708,7 @@ struct volopt_map_entry glusterd_volopt_map[] = { { .key = "network.remote-dio", .voltype = "protocol/client", .option = "filter-O_DIRECT", - .op_version = 1, + .op_version = 2, .flags = OPT_FLAG_CLIENT_OPT }, @@ -1107,7 +1107,7 @@ struct volopt_map_entry glusterd_volopt_map[] = { .voltype = "features/read-only", .option = "!read-only", .value = "off", - .op_version = 2, + .op_version = 1, .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_XLATOR_OPT }, { .key = "features.worm", @@ -1119,17 +1119,17 @@ struct volopt_map_entry glusterd_volopt_map[] = { }, { .key = "storage.linux-aio", .voltype = "storage/posix", - .op_version = 2 + .op_version = 1 }, { .key = "storage.owner-uid", .voltype = "storage/posix", .option = "brick-uid", - .op_version = 2 + .op_version = 1 }, { .key = "storage.owner-gid", .voltype = "storage/posix", .option = "brick-gid", - .op_version = 2 + .op_version = 1 }, { .key = "config.memory-accounting", .voltype = "configuration", -- cgit