summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshishir gowda <sgowda@redhat.com>2013-11-15 15:30:40 +0530
committershishir gowda <sgowda@redhat.com>2013-11-15 15:32:54 +0530
commit4b7eb99ef3360cc7abe2c565dee6b24e0aaebf90 (patch)
tree39a5f7631bc3ef40015bc3258b01bebd6b8d430d
parentd96f4969b1e36dc4cc3de389c42f947a05511fdd (diff)
storage/bd: check glusterd_is_valid_vg if HAVE_BD_XLATOR
Change-Id: I97a417eeebc7ac6193c2de7ad59eb8f7f4f79fe6 Signed-off-by: shishir gowda <sgowda@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
index c467945..ac2684d 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
@@ -812,11 +812,14 @@ glusterd_op_stage_create_volume (dict_t *dict, char **op_errstr)
}
if (!uuid_compare (brick_info->uuid, MY_UUID)) {
+
+#ifdef HAVE_BD_XLATOR
if (brick_info->vg[0]) {
ret = glusterd_is_valid_vg (brick_info, 1, msg);
if (ret)
goto out;
}
+#endif
ret = glusterd_validate_and_create_brickpath (brick_info,
volume_uuid, op_errstr,
is_force);