From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlEck-0003oS-Om for qemu-devel@nongnu.org; Thu, 23 Apr 2015 06:44:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlEch-0007rc-Jp for qemu-devel@nongnu.org; Thu, 23 Apr 2015 06:44:50 -0400 Message-ID: <5538CD0F.1060100@redhat.com> Date: Thu, 23 Apr 2015 12:44:31 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20150420153047.GB32653@stefanha-thinkpad.redhat.com> <5535A727.5080402@cn.fujitsu.com> <55366C81.1080202@redhat.com> <20150422093101.GD3882@noname.redhat.com> <5537742A.90504@redhat.com> <20150423090031.GB5289@noname.redhat.com> <5538B813.5090506@cn.fujitsu.com> <5538C3CC.9030902@redhat.com> <20150423101716.GF5289@noname.redhat.com> <5538CA77.4030708@redhat.com> <20150423104045.GG5289@noname.redhat.com> In-Reply-To: <20150423104045.GG5289@noname.redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH COLO v3 01/14] docs: block replication's description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Fam Zheng , Lai Jiangshan , qemu block , Jiang Yunhong , Dong Eddie , qemu devel , Max Reitz , Gonglei , Stefan Hajnoczi , Yang Hongyang , "Dr. David Alan Gilbert" , zhanghailiang On 23/04/2015 12:40, Kevin Wolf wrote: > The question that is still open for me is whether it would be a colo.c > or an active-mirror.c, i.e. if this would be tied specifically to COLO > or if it could be kept generic enough that it could be used for other > use cases as well. Understood (now). >>> What I think is really needed here is essentially an active mirror >>> filter. >> >> Yes, an active synchronous mirror. It can be either a filter or a >> device. Has anyone ever come up with a design for filters? Colo >> doesn't need much more complexity than a "toy" blkverify filter. > > I think what we're doing now for quorum/blkverify/blkdebug is okay. > > The tricky and yet unsolved part is how to add/remove filter BDSes at > runtime (dynamic reconfiguration), but IIUC that isn't needed here. Yes, it is. The "defer connection to NBD when replication is started" is effectively "add the COLO filter" (with the NBD connection as a children) when replication is started. Similarly "close the NBD device when replication is stopped" is effectively "remove the COLO filter" (which brings the NBD connection down with it). Paolo