Received: from eggs.gnu.org ([2001:4830:134:3::10]:36779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDAed-0003ZJ-G0 for qemu-devel@nongnu.org; Fri, 01 Aug 2014 07:05:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDAeW-0008Me-Uf for qemu-devel@nongnu.org; Fri, 01 Aug 2014 07:05:42 -0400 Received: from indium.canonical.com ([91.189.90.7]:43358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDAeW-0008MD-Jl for qemu-devel@nongnu.org; Fri, 01 Aug 2014 07:05:36 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1XDAeV-0000Yk-Qn for ; Fri, 01 Aug 2014 11:05:35 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id B59472E80C0 for ; Fri, 1 Aug 2014 11:05:35 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 01 Aug 2014 10:59:10 -0000 From: Giancarlo Formicuccia Sender: bounces@canonical.com References: <20140801105910.19328.36701.malonedeb@gac.canonical.com> Message-Id: <20140801105910.19328.36701.malonedeb@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1351271] [NEW] 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 Public bug reported: 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 ** Affects: qemu Importance: Undecided Status: New -- = 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: New 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