summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-volgen.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2013-01-28 13:24:03 -0500
committerAnand Avati <avati@redhat.com>2013-01-28 17:26:37 -0800
commitfd9612466a8dfbfe0f918426919cf8ec135ffb4b (patch)
tree23313916e2b935babae1450f6c9b4e6468f1a96f /xlators/mgmt/glusterd/src/glusterd-volgen.c
parentfb9f29e892e762e161fc9ed72403eeaadb050077 (diff)
performance/md-cache: add force-readdirp flag to make readdirp configurable
md-cache currently transforms all readdir fops into readdirp fops. This patch creates the 'force-readdirp' configuration flag to provide control over this behavior. force-readdirp is enabled by default to maintain current default behavior. BUG: 903175 Change-Id: Idd70926dec7c271204bdfb11fb052e56d0a39420 Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-on: http://review.gluster.org/4440 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volgen.c')
-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 119dcafe..b5666e78 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
@@ -209,6 +209,7 @@ static struct volopt_map_entry glusterd_volopt_map[] = {
{"performance.nfs.quick-read", "performance/quick-read", "!nfsperf", "off", NO_DOC, 0, 1},
{"performance.nfs.stat-prefetch", "performance/md-cache", "!nfsperf", "off", NO_DOC, 0, 1},
{"performance.nfs.io-threads", "performance/io-threads", "!nfsperf", "off", NO_DOC, 0, 1},
+ {"performance.force-readdirp", "performance/md-cache", "force-readdirp", NULL, DOC, 0, 2},
/* Quota xlator options */
{VKEY_FEATURES_LIMIT_USAGE, "features/quota", "limit-set", NULL, NO_DOC, 0, 1},