Received: from eggs.gnu.org ([2001:4830:134:3::10]:57530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRAkA-0006di-OC for qemu-devel@nongnu.org; Thu, 26 Feb 2015 21:33:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRAk7-0004l6-Gg for qemu-devel@nongnu.org; Thu, 26 Feb 2015 21:33:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRAk7-0004l0-7p for qemu-devel@nongnu.org; Thu, 26 Feb 2015 21:33:31 -0500 Date: Fri, 27 Feb 2015 10:32:49 +0800 From: Fam Zheng Message-ID: <20150227023249.GD16426@ad.nay.redhat.com> References: <20150212072117.GB32554@ad.nay.redhat.com> <54DC58E6.7060608@cn.fujitsu.com> <20150212084435.GD32554@ad.nay.redhat.com> <54EC2D3F.2030803@cn.fujitsu.com> <20150225024622.GC9178@ad.nay.redhat.com> <54EEBF7C.3010504@cn.fujitsu.com> <20150226084447.GB5930@ad.nay.redhat.com> <54EEE25D.2060704@cn.fujitsu.com> <20150226100239.GE5930@ad.nay.redhat.com> <54EFD621.6080906@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54EFD621.6080906@cn.fujitsu.com> Subject: Re: [Qemu-devel] [RFC PATCH 01/14] docs: block replication's description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang Cc: Kevin Wolf , Lai Jiangshan , Jiang Yunhong , Dong Eddie , "Dr. David Alan Gilbert" , qemu devel , Gonglei , Stefan Hajnoczi , Paolo Bonzini , Yang Hongyang , jsnow@redhat.com, zhanghailiang On Fri, 02/27 10:27, Wen Congyang wrote: > > 1. nbd-target0 is writable here, without the drive-backup, hidden0 could be > > corrupted by writings to it. So there need to be a new convention and > > invariance to follow. > > Hmm, I understand while the hidden-disk should be opened automatically now. > If we use backing reference, I think we should open a hindden-disk, and set > drive backup automatically. Block any conflict operations(commit, change, eject?) This might be a good idea. > > > > > 2. in qmp, block-commit hidden0 to nbd-target0 or it's backing file, will > > corrupt data (from nbd-target0's perspective). > > > > 3. unclear implications of "change" and "eject" when there is backing > > reference. > > > > 4. can a drive be backing referenced by more than one other drives? > > We can forbid it first. > Yes, probably with a new op blocker type. Fam