From 560842297b9a067f358d3c3969eb3bdbb6132036 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Wed, 15 Sep 2010 02:02:05 +0000 Subject: Volume stop/start fails sometimes If the pid file is not present, do not fail the volume stop. Signed-off-by: shishir gowda Signed-off-by: Vijay Bellur BUG: 1602 (Volume start/stop sometime fails.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1602 --- xlators/mgmt/glusterd/src/glusterd-utils.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index f85fe2babc6..4ef0bd17bc2 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -866,6 +866,11 @@ glusterd_volume_stop_glusterfs (glusterd_volinfo_t *volinfo, if (!file) { gf_log ("", GF_LOG_ERROR, "Unable to open pidfile: %s", pidfile); + if (errno == ENOENT) { + gf_log ("",GF_LOG_TRACE, "volume may not be running"); + ret = 0; + goto out; + } ret = -1; goto out; } -- cgit