Received: from [140.186.70.92] (port=38353 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ofq9W-00027W-1M for qemu-devel@nongnu.org; Mon, 02 Aug 2010 04:13:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ofq9U-0003yQ-OH for qemu-devel@nongnu.org; Mon, 02 Aug 2010 04:13:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14256) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofq9U-0003xV-Fp for qemu-devel@nongnu.org; Mon, 02 Aug 2010 04:13:40 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [Bug 611640] [NEW] snapshot mode is broken for raw images References: <20100730100919.27224.81375.malonedeb@wampee.canonical.com> <20100730100919.27224.81375.malonedeb@wampee.canonical.com> Date: Mon, 02 Aug 2010 10:13:31 +0200 In-Reply-To: <20100730100919.27224.81375.malonedeb@wampee.canonical.com> (Victor Shkamerda's message of "Fri, 30 Jul 2010 10:09:19 -0000") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 611640 <611640@bugs.launchpad.net> Cc: Kevin Wolf , qemu-devel@nongnu.org Victor Shkamerda <611640@bugs.launchpad.net> writes: > Public bug reported: > > The snapshot mode is not working if you use raw format for image instead > of qcow2. Create a raw disk image by running "dd of=xxx.img bs=1 count=0 > seek=8G". Then run "qemu -snapshot xxx.img". In monitor console run > "info block". There should be qcow2 temporary image backed by the raw > image. Now run "commit ide0-hd0" and after that again "info block". You > should see now that there is no more image, so any operations on it will > fail form now on. This is for latest HEAD in git. > > ** Affects: qemu > Importance: Undecided > Status: New git bisect points to commit c33491978c5c4c746cc0272d5f2df50aa14d1f02 Author: Kevin Wolf Date: Thu May 6 16:34:56 2010 +0200 block: Fix bdrv_commit When reopening the image, don't guess the driver, but use the same driver as was used before. This is important if the format=... option was used for that image.