diff options
author | Amar Tumballi <amarts@redhat.com> | 2012-11-28 11:51:57 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-12-12 00:22:49 -0500 |
commit | 19a391344daecde4ee6446897c248be5b828b67b (patch) | |
tree | 364206da4f3682017cb1b55269c3948350fb26cb /xlators/protocol/client/src/client.h | |
parent | 7746a12476298286d5ff918af3a526dd60dae992 (diff) |
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 <VOLNAME> remote-dio enable" would set
this option in client protocol volumes.
Change-Id: I08f3d1f6fed6da58501b5b94e5572216593c2847
Signed-off-by: Amar Tumballi <amarts@redhat.com>
BUG: 856156
Reviewed-on: https://code.engineering.redhat.com/gerrit/1685
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/1885
Diffstat (limited to 'xlators/protocol/client/src/client.h')
-rw-r--r-- | xlators/protocol/client/src/client.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |