From fe3c6f0fa2bf8590f4c540fd9561aeeec1243361 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 8 Sep 2015 16:23:36 +0530 Subject: cluster/ec: Implement gfid-hash read-policy Add a policy in ec to performs reads from same bricks as long as they are good. Based on the gfid of the file/directory it determines the bricks to be considered for reading. Change-Id: Ic97b5c54c086a28b5e07a330a4fd448551b49376 BUG: 1261260 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/12133 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Xavier Hernandez --- xlators/mgmt/glusterd/src/glusterd-volume-set.c | 8 ++++++++ 1 file changed, 8 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 e93a22eafdd..c62f2d79c1f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -2082,10 +2082,12 @@ struct volopt_map_entry glusterd_volopt_map[] = { { .key = "disperse.background-heals", .voltype = "cluster/disperse", .op_version = GD_OP_VERSION_3_7_3, + .flags = OPT_FLAG_CLIENT_OPT }, { .key = "disperse.heal-wait-qlength", .voltype = "cluster/disperse", .op_version = GD_OP_VERSION_3_7_3, + .flags = OPT_FLAG_CLIENT_OPT }, { .key = "cluster.heal-timeout", .voltype = "cluster/disperse", @@ -2098,6 +2100,12 @@ struct volopt_map_entry glusterd_volopt_map[] = { .voltype = "cluster/distribute", .option = "use-readdirp", .op_version = GD_OP_VERSION_3_7_5, + .flags = OPT_FLAG_CLIENT_OPT + }, + { .key = "disperse.read-policy", + .voltype = "cluster/disperse", + .op_version = GD_OP_VERSION_3_7_6, + .flags = OPT_FLAG_CLIENT_OPT }, { .key = NULL } -- cgit