From efd1f08b57a3175cab9bb543833bc3c9192b527d Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Mon, 27 Sep 2010 16:20:19 +0000 Subject: replace brick fixes Reviewed ok. Just like commit, maybe we can move 'pause' also to the commit op of replace brick since it can be performed only when replace brick has been started. I'll send in a patch for that soon. ----- Original Message ----- From: "Vijay Bellur" To: glusterfs@dev.gluster.com Sent: Monday, September 27, 2010 7:59:25 PM Subject: [PATCH BUG:1235] replace brick fixes Signed-off-by: Vijay Bellur Signed-off-by: Vijay Bellur BUG: 1235 (Bug for all pump/migrate commits) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1235 --- glusterfsd/src/glusterfsd-mgmt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'glusterfsd') diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index 4c0d147e8..341d2267a 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -343,8 +343,10 @@ mgmt_getspec_cbk (struct rpc_req *req, struct iovec *iov, int count, ret = 0; size = rsp.op_ret; - if (size == oldvollen && (memcmp (oldvolfile, rsp.spec, size) == 0)) + if (size == oldvollen && (memcmp (oldvolfile, rsp.spec, size) == 0)) { + gf_log ("", GF_LOG_NORMAL, "No change in volfile, continuing"); goto out; + } tmpfp = tmpfile (); if (!tmpfp) { -- cgit