summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshishir gowda <sgowda@redhat.com>2013-11-18 20:23:54 -0800
committerGerrit Code Review <review@dev.gluster.org>2013-11-18 20:23:54 -0800
commit5af3c6e4b3d88690bf1d812534488fcc97625efa (patch)
treeabc65642f9540d4261bdbac2fe4ac751cc7055b7
parent6ac146597ad78ce5ca84ac532e2b0e21d261620e (diff)
parent4b7eb99ef3360cc7abe2c565dee6b24e0aaebf90 (diff)
Merge "storage/bd: check glusterd_is_valid_vg if HAVE_BD_XLATOR" into development
-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);