From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dIeCK-0004bZ-Kh for qemu-devel@nongnu.org; Wed, 07 Jun 2017 12:52:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dIeCJ-0005I9-SK for qemu-devel@nongnu.org; Wed, 07 Jun 2017 12:52:44 -0400 Date: Wed, 7 Jun 2017 18:52:36 +0200 From: Kevin Wolf Message-ID: <20170607165236.GF8144@noname.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] block: fix external snapshot abort permission error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Cody Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org Am 07.06.2017 um 15:55 hat Jeff Cody geschrieben: > In external_snapshot_abort(), we try to undo what was done in > external_snapshot_prepare() calling bdrv_replace_node() to swap the > nodes back. However, we receive a permissions error as writers are > blocked on the old node, which is now the new node backing file. > > An easy fix (initially suggested by Kevin Wolf) is to call > bdrv_set_backing_hd() on the new node, to set the backing node to NULL. > > Signed-off-by: Jeff Cody Thanks, applied to the block branch. Kevin