Received: from eggs.gnu.org ([2001:4830:134:3::10]:57791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb7uZ-0001x9-Hl for qemu-devel@nongnu.org; Tue, 29 Oct 2013 07:56:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vb7uT-0007xp-Eo for qemu-devel@nongnu.org; Tue, 29 Oct 2013 07:56:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb7uT-0007xj-6u for qemu-devel@nongnu.org; Tue, 29 Oct 2013 07:56:33 -0400 Date: Tue, 29 Oct 2013 12:56:28 +0100 From: Kevin Wolf Message-ID: <20131029115628.GC4690@dhcp-200-207.str.redhat.com> References: <1382660107-26518-1-git-send-email-thibaut.laurent@gmail.com> <526BC420.80907@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <526BC420.80907@redhat.com> Subject: Re: [Qemu-devel] [PATCH] Fix COR by disabling BDRV_O_COPY_ON_READ before opening the backing_file. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Thibaut LAURENT , qemu-devel@nongnu.org, Stefan Hajnoczi Am 26.10.2013 um 15:31 hat Max Reitz geschrieben: > Am 25.10.2013 02:15, schrieb Thibaut LAURENT: > > Since commit 0ebd24e0a203cf2852c310b59fbe050190dc6c8c, > > bdrv_open_common will throw an error when trying to open a file > > read-only with the BDRV_O_COPY_ON_READ flag set. > > Although BDRV_O_RDWR is unset for the backing files, > > BDRV_O_COPY_ON_READ is still passed on if copy-on-read was requested > > for the drive. Let's unset this flag too before opening the backing > > file, or bdrv_open_common will fail. > > > > Signed-off-by: Thibaut LAURENT > > --- > > block.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > Reviewed-by: Max Reitz Thanks, applied to the block branch. (And thanks for CCing me, Max, I would have missed the patch otherwise.) Kevin