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/mgmt | |
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/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 9feb76560c6..6ae32091a6c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -235,6 +235,7 @@ static struct volopt_map_entry glusterd_volopt_map[] = { {"storage.linux-aio", "storage/posix", NULL, NULL, DOC, 0}, {"storage.owner-uid", "storage/posix", "brick-uid", NULL, DOC, 0}, {"storage.owner-gid", "storage/posix", "brick-gid", NULL, DOC, 0}, + {"network.remote-dio", "protocol/client", "filter-O_DIRECT", NULL, DOC, 0}, {NULL, } }; |