summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-volgen.c
diff options
context:
space:
mode:
authorvmallika <vmallika@redhat.com>2014-11-14 12:06:39 +0530
committerKrishnan Parthasarathi <kparthas@redhat.com>2014-11-14 03:37:59 -0800
commitc3c28ad86be6feb0b148df4681da432047dc0bc3 (patch)
treea254dbd8ce7ea5755bf035cadf2806785c99fe38 /xlators/mgmt/glusterd/src/glusterd-volgen.c
parent3e0a9c04ed86153a2822b92d69b31e20ef5c63f6 (diff)
mgmt/glusterd: Validate the options of uss
Change-Id: Id13dc4cd3f5246446a9dfeabc9caa52f91477524 BUG: 1111554 Signed-off-by: Varun Shastry <vshastry@redhat.com> Signed-off-by: vmallika <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/8133 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Tested-by: Krishnan Parthasarathi <kparthas@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volgen.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volgen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c
index 476e3b0c1d9..22af263547b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
@@ -2876,7 +2876,10 @@ client_graph_builder (volgen_graph_t *graph, glusterd_volinfo_t *volinfo,
if (ret)
goto out;
- if (!volinfo->is_snap_volume && glusterd_is_snapd_enabled (volinfo)) {
+ ret = dict_get_str_boolean (set_dict, "features.uss", _gf_false);
+ if (ret == -1)
+ goto out;
+ if (ret && !volinfo->is_snap_volume) {
ret = volgen_graph_build_snapview_client
(graph, volinfo, volname, set_dict);
if (ret == -1)