summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-09-04 01:11:34 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-06 02:21:36 -0700
commit4c87d30724b29a83c6a0f4a101468824fa76ac19 (patch)
treea2368d6b61648b9efb7f684a76f3804250388e5e /xlators
parent07d84f0f77ea336b3c3ae65907261ed3242feacb (diff)
Volume create hostname should not be localhost
volume create hostname should not be localhost or 127.0.0.1. It should be a valid nodeid or ip. This will prevent invalid vol files being created on glusterd's when localhost or 127.0.0.1 is specified Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1505 (volume create/add-brick requires ip or hostname for localhost) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1505
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index b1f07516795..7aa7a137b48 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -1631,7 +1631,7 @@ glusterd_handle_remove_brick (rpcsvc_request_t *req)
}
- brick_list = GF_MALLOC (120000 * sizeof(brick_list),gf_common_mt_char);
+ brick_list = GF_MALLOC (120000 * sizeof(*brick_list),gf_common_mt_char);
if (!brick_list) {
gf_log ("",GF_LOG_ERROR,"glusterd_handle_remove_brick: "