Received: from eggs.gnu.org ([2001:4830:134:3::10]:42801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDfFR-0007Us-0F for qemu-devel@nongnu.org; Sat, 02 Aug 2014 15:45:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDfFK-0008N9-UF for qemu-devel@nongnu.org; Sat, 02 Aug 2014 15:45:44 -0400 Received: from indium.canonical.com ([91.189.90.7]:39318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDfFK-0008N5-NS for qemu-devel@nongnu.org; Sat, 02 Aug 2014 15:45:38 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1XDfFJ-00014I-GC for ; Sat, 02 Aug 2014 19:45:37 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 69C962E8009 for ; Sat, 2 Aug 2014 19:45:37 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 02 Aug 2014 19:38:05 -0000 From: Giancarlo Formicuccia Sender: bounces@canonical.com References: <20140801105910.19328.36701.malonedeb@gac.canonical.com> Message-Id: <20140802193805.23850.95668.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1351271] Re: qemu deletes the backing file in snapshot mode Reply-To: Bug 1351271 <1351271@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Just tested qemu 2.1.0 and the bug is fixed in this version. ** Changed in: qemu Status: New =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1351271 Title: qemu deletes the backing file in snapshot mode Status in QEMU: Fix Released Bug description: The file removal occurs during the "change" operation. It happens only in snapshot mode. Minimal steps to reproduce the problem: $ dd if=3D/dev/zero of=3Dfile.img bs=3D1M count=3D1 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.00288727 s, 363 MB/s $ ls file.img file.img $ qemu-system-x86_64 -monitor stdio -snapshot QEMU 2.0.0 monitor - type 'help' for more information = = = (qemu) change ide1-cd0 file.img (qemu) change ide1-cd0 file.img (qemu) change ide1-cd0 file.img Could not open 'file.img': No such file or directory = = = (qemu) q $ ls file.img ls: cannot access file.img: No such file or directory qemu version is 2.0.0 from arch linux, which is the vanilla version plus one patch unrelated to this problem. info block in snapshot mode reports: ide1-cd0: /var/tmp/vl.G5WENk (qcow2) Removable device: not locked, tray closed Backing file: file.img (chain depth: 1) whereas info block NOT in snapshot mode correctly reports: ide1-cd0: file.img (raw, read-only) Removable device: not locked, tray closed To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1351271/+subscriptions