From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlDwx-0005Ev-28 for qemu-devel@nongnu.org; Thu, 23 Apr 2015 06:01:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlDwt-0001f0-QX for qemu-devel@nongnu.org; Thu, 23 Apr 2015 06:01:39 -0400 Message-ID: <5538B813.5090506@cn.fujitsu.com> Date: Thu, 23 Apr 2015 17:14:59 +0800 From: Wen Congyang MIME-Version: 1.0 References: <1428055280-12015-1-git-send-email-wency@cn.fujitsu.com> <1428055280-12015-2-git-send-email-wency@cn.fujitsu.com> <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> In-Reply-To: <20150423090031.GB5289@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 , Paolo Bonzini 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 04/23/2015 05:00 PM, Kevin Wolf wrote: > Am 22.04.2015 um 12:12 hat Paolo Bonzini geschrieben: >> On 22/04/2015 11:31, Kevin Wolf wrote: >>>> Actually I liked the "foo+colo" names. >>>> >>>> These are just internal details of the implementations and the >>>> primary/secondary disks actually can be any format. >>>> >>>> Stefan, what was your worry with the +colo block drivers? >>> >>> I haven't read the patches yet, so I may be misunderstanding, but >>> wouldn't a separate filter driver be more appropriate than modifying >>> qcow2 with logic that has nothing to do with the image format? >> >> Possibly; on the other hand, why multiply the size of the test matrix >> with options that no one will use and that will bitrot? > > Because it may be the right design. > > If you're really worried about the test matrix, put a check in the > filter block driver that its bs->file is qcow2. Of course, such an > artificial restriction looks a bit ugly, but using a bad design just > in order to get the same restriction is even worse. The bs->file->driver should support backing file, and use backing reference already. What about the primary side? We should control when to connect to NBD server, not in nbd_open(). Thanks Wen Congyang > > Stefan originally wanted to put image streaming in the QED driver. I > think we'll agree today that it was right to reject that. It's simply > not functionality related to the format. Adding replication logic to > qcow2 looks similar to me in that respect. > > Kevin > . >