From c6570de4d5ba090cfb4bb9d2b0390f2526ed0636 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 19 Nov 2012 16:29:44 +0530 Subject: protocol/client: add an option to filter O_DIRECT flag in open with the option, the idea is all client-side caching will be disabled, where as on server side process, the fd will be treated as a regular fd, thus helping the performance better. "gluster volume set remote-dio enable" would set this option in client protocol volumes. Change-Id: Id2255a167137f8fee20849513e3011274dc829b4 Signed-off-by: Amar Tumballi BUG: 845213 Reviewed-on: http://review.gluster.org/4206 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd-volgen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-volgen.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 3629361ad..76172dd9b 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -178,6 +178,7 @@ static struct volopt_map_entry glusterd_volopt_map[] = { {"features.lock-heal", "protocol/client", "lk-heal", NULL, DOC, 0, 1}, {"features.grace-timeout", "protocol/client", "grace-timeout", NULL, DOC, 0, 1}, {"client.ssl", "protocol/client", "transport.socket.ssl-enabled", NULL, NO_DOC, 0, 2}, + {"network.remote-dio", "protocol/client", "filter-O_DIRECT", NULL, DOC, 0, 1}, /* Server xlator options */ {"network.tcp-window-size", "protocol/server", NULL, NULL, NO_DOC, 0, 1}, -- cgit