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/protocol/client/src/client.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/protocol/client/src/client.h') diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h index 420674910a8..9241eefa3aa 100644 --- a/xlators/protocol/client/src/client.h +++ b/xlators/protocol/client/src/client.h @@ -114,6 +114,8 @@ typedef struct clnt_conf { the reconnection happen after the usual 3-second wait */ + gf_boolean_t filter_o_direct; /* if set, filter O_DIRECT from + the flags list of open() */ } clnt_conf_t; typedef struct _client_fd_ctx { -- cgit