From fac8038a9fa80e16b557d91b9e2fec271cfda5fa Mon Sep 17 00:00:00 2001 From: Jeff Darcy Date: Mon, 14 Dec 2015 16:25:22 -0500 Subject: NSR: Volgen Support Allows the user to convert an afr-volume to a nsr-volume by using cluster.nsr option in the volume set command gluster volume set cluster.nsr Change-Id: Ia1c5aa89d27535f7275d474cf312dc5efb8e222f BUG: 1158654 Signed-off-by: Jeff Darcy Reviewed-on: http://review.gluster.org/12943 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Avra Sengupta CentOS-regression: Gluster Build System --- xlators/mgmt/glusterd/src/glusterd-volume-set.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-set.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index 112980c4661..ec7a19070ab 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -2644,6 +2644,19 @@ struct volopt_map_entry glusterd_volopt_map[] = { .op_version = GD_OP_VERSION_3_7_6, .flags = OPT_FLAG_CLIENT_OPT }, + { .key = "cluster.nsr", + .voltype = "experimental/nsr", + .option = "!nsr", + .op_version = GD_OP_VERSION_4_0_0, + .description = "enable NSR instead of AFR for replication", + .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_XLATOR_OPT + }, + { .key = "cluster.nsr.quorum-percent", + .voltype = "experimental/nsr", + .option = "quorum-percent", + .op_version = GD_OP_VERSION_4_0_0, + .description = "percent of rep_count-1 bricks that must be up" + }, { .key = NULL } }; -- cgit