From 608223c792fc308729b522777efad4c6afb8238c Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Tue, 18 May 2010 00:05:47 +0000 Subject: Log proper error message when hostname or ip does not conform to standards. Signed-off-by: "Sachidananda Urs" Signed-off-by: Anand V. Avati BUG: 923 (Hostnames with underscores fail) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=923 --- libglusterfs/src/xlator.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index bc36173d142..fe688a9513d 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -603,7 +603,12 @@ _volume_option_value_validate (xlator_t *xl, { if (valid_internet_address (pair->value->data)) { ret = 0; - } + } else { + gf_log (xl->name, GF_LOG_ERROR, "internet address '%s'" + " does not conform to standards.", + pair->value->data); + goto out; + } } break; case GF_OPTION_TYPE_ANY: -- cgit