From 19a391344daecde4ee6446897c248be5b828b67b Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 28 Nov 2012 11:51:57 +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: I08f3d1f6fed6da58501b5b94e5572216593c2847 Signed-off-by: Amar Tumballi BUG: 856156 Reviewed-on: https://code.engineering.redhat.com/gerrit/1685 Reviewed-by: Vijay Bellur Tested-by: Vijay Bellur Reviewed-on: https://code.engineering.redhat.com/gerrit/1885 --- xlators/protocol/client/src/client.h | 3 +++ 1 file changed, 3 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 ac999db5a16..035a3ecd764 100644 --- a/xlators/protocol/client/src/client.h +++ b/xlators/protocol/client/src/client.h @@ -109,6 +109,9 @@ typedef struct clnt_conf { means dont register, true means register */ char parent_down; + + 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