summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-01-21 16:37:43 -0800
committerAnand Avati <avati@redhat.com>2013-02-06 13:16:08 -0800
commit45c04e107c365d29ca9872b5e2d12c932bf43a24 (patch)
treebfffde34cfedcbea5e170e59da67b7543dfadce1 /xlators/mgmt/glusterd/src
parentc2953ea34c92f640cecf0f6575aa1acbdc5205b4 (diff)
open-behind: translator to perform open calls in background
This is functionality peeled out of quick-read into a separate translator. Fops which modify the file (where it is required to perform the operation on the true fd) will trigger and wait for the backend open to succeed and use that fd. Fops like fstat() readv() etc. will use anonymous FD (configurable) when original fd is unopened at the backend. Change-Id: Id9847fdbfdc82c1c8e956339156b6572539c1876 BUG: 846240 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/4406 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volgen.c1
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 01dbd8c79f2..f89cd3a4988 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
@@ -201,6 +201,7 @@ static struct volopt_map_entry glusterd_volopt_map[] = {
{"performance.read-ahead", "performance/read-ahead", "!perf", "on", NO_DOC, 0, 1},
{"performance.io-cache", "performance/io-cache", "!perf", "on", NO_DOC, 0, 1},
{"performance.quick-read", "performance/quick-read", "!perf", "on", NO_DOC, 0, 1},
+ {"performance.open-behind", "performance/open-behind", "!perf", "on", NO_DOC, 0, 2},
{"performance.stat-prefetch", "performance/md-cache", "!perf", "on", NO_DOC, 0, 1},
{"performance.client-io-threads", "performance/io-threads", "!perf", "off", NO_DOC, 0, 1},