summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2010-08-20 01:28:32 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-21 05:17:02 -0700
commita6cc486e5733bcbe1bf562d6a523a5dd334cdf81 (patch)
treec210ea16f13f3cdbe619b6d28ad359a09e300b4d /xlators/mgmt/glusterd/src
parentc2518242ed0723b7fa6c09564a3330572e189d74 (diff)
xlators/mgmt: exit if directory creation fails.
Signed-off-by: Sachidananda Urs <sac@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1408 (glusterd continues despite directory creation fails.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1408
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index 33c9ac796cd..15cc9cd86a0 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -234,6 +234,7 @@ init (xlator_t *this)
gf_log (this->name, GF_LOG_CRITICAL,
"Unable to create directory %s"
" ,errno = %d", dirname, errno);
+ exit (1);
}
}
@@ -248,6 +249,7 @@ init (xlator_t *this)
gf_log (this->name, GF_LOG_CRITICAL,
"Unable to create volume directory %s"
" ,errno = %d", voldir, errno);
+ exit (1);
}
snprintf (voldir, PATH_MAX, "%s/peers", dirname);
@@ -258,6 +260,7 @@ init (xlator_t *this)
gf_log (this->name, GF_LOG_CRITICAL,
"Unable to create peers directory %s"
" ,errno = %d", voldir, errno);
+ exit (1);
}
rpc = rpcsvc_init (this->ctx, this->options);