From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz1cR-0007IW-8e for qemu-devel@nongnu.org; Fri, 03 Jan 2014 05:04:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vz1cI-0001Xi-SS for qemu-devel@nongnu.org; Fri, 03 Jan 2014 05:04:43 -0500 Received: from mail-ee0-x234.google.com ([2a00:1450:4013:c00::234]:65182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz1cI-0001XW-LX for qemu-devel@nongnu.org; Fri, 03 Jan 2014 05:04:34 -0500 Received: by mail-ee0-f52.google.com with SMTP id d17so6655070eek.11 for ; Fri, 03 Jan 2014 02:04:33 -0800 (PST) Date: Fri, 3 Jan 2014 18:04:09 +0800 From: Stefan Hajnoczi Message-ID: <20140103100409.GD1483@stefanha-thinkpad.redhat.com> References: <1386920120-2651-1-git-send-email-famz@redhat.com> <1386920120-2651-10-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1386920120-2651-10-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v8 09/12] block: Support dropping active in bdrv_drop_intermediate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, rjones@redhat.com, armbru@redhat.com, qemu-devel@nongnu.org, imain@redhat.com, stefanha@redhat.com, pbonzini@redhat.com On Fri, Dec 13, 2013 at 03:35:17PM +0800, Fam Zheng wrote: > + * 1) This will convert the following chain: > + * ... <- base <- ... <- top <- overlay <-... <- active > + * > + * to > * > - * Requires that the overlay to 'top' is opened r/w, so that the backing file > - * information in 'bs' can be properly updated. > + * ... <- base <- overlay <- active > * > - * E.g., this will convert the following chain: > - * bottom <- base <- intermediate <- top <- active > + * 2) It is allowed for bottom==base, in which case it converts: > + * > + * ... <- base <- ... <- top <- overlay <- ... <- active If bottom==base then I think it should be: base <- ... <- top <- overlay <- ... <- active (Dropping the "... <- " prefix)