From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z80nZ-0005bx-Aw for qemu-devel@nongnu.org; Thu, 25 Jun 2015 02:38:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z80nV-0000TQ-AQ for qemu-devel@nongnu.org; Thu, 25 Jun 2015 02:38:09 -0400 Received: from [59.151.112.132] (port=12199 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z80nU-0000S1-Lt for qemu-devel@nongnu.org; Thu, 25 Jun 2015 02:38:05 -0400 Message-ID: <558BA2B5.3080107@cn.fujitsu.com> Date: Thu, 25 Jun 2015 14:41:57 +0800 From: Wen Congyang MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] refresh filename after the node is replaced List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devl , Jeff Cody Cc: Fam Zheng , Stefan Hajnoczi We can use block job mirror to repair broken quorum files. But the command 'info block' doesn't output correct filename after block job mirror finishes. Signed-off-by: Wen Congyang --- block/mirror.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block/mirror.c b/block/mirror.c index 8aa2b21..2ca2c21 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -351,6 +351,9 @@ static void mirror_exit(BlockJob *job, void *opaque) bdrv_set_backing_hd(s->base, NULL); bdrv_unref(p); } + if (s->to_replace != s->common.bs) { + bdrv_refresh_filename(s->common.bs); + } } if (s->to_replace) { bdrv_op_unblock_all(s->to_replace, s->replace_blocker); -- 2.4.3