Received: from eggs.gnu.org ([2001:4830:134:3::10]:39547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlsPK-0007f2-Lz for qemu-devel@nongnu.org; Tue, 13 Oct 2015 01:45:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlsPH-0002Z8-Fj for qemu-devel@nongnu.org; Tue, 13 Oct 2015 01:45:54 -0400 From: Alberto Garcia In-Reply-To: <561C182F.7060203@redhat.com> References: <5cb22bcd1ae6ca976ae6d2b823316c557ad0c08e.1444640617.git.berto@igalia.com> <561C182F.7060203@redhat.com> Date: Tue, 13 Oct 2015 07:45:48 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v7 4/5] block: add a 'blockdev-snapshot' QMP command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , qemu-block@nongnu.org On Mon 12 Oct 2015 10:29:35 PM CEST, Max Reitz wrote: >> - if (has_snapshot_node_name && >> - bdrv_lookup_bs(snapshot_node_name, snapshot_node_name, NULL)) { >> - error_setg(errp, "New snapshot node name already in use"); > > There's a difference from v6 here... [...] >> - options = qdict_new(); >> - if (has_snapshot_node_name) { >> - qdict_put(options, "node-name", >> - qstring_from_str(snapshot_node_name)); >> + if (snapshot_node_name && >> + bdrv_lookup_bs(snapshot_node_name, snapshot_node_name, NULL)) { >> + error_setg(errp, "New snapshot node name already in use"); > > ...and here, but how to resolve the conflict resulting from the newly > added patch 1 was obvious, so my R-b stands, of course. The differences are because this patch is now rebased on top of the new one, sorry if I overstepped by keeping your R-b here! >> + if (state->new_bs->backing_hd != NULL) { >> + error_setg(errp, "The snapshot already has a backing image"); >> } > > It's here: In case Kevin's series is applied before this one (which > I'm assuming since you were brave enough to base this series on my BB > series), this needs to be s/backing_hd/backing/. I'm just saying this > so you know you can keep my R-b then. Sure, I was about to test your new version of the series. Thanks, Berto