Received: from [140.186.70.92] (port=49539 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1kFd-0006DR-9Y for qemu-devel@nongnu.org; Fri, 01 Oct 2010 14:23:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1kEi-0003hJ-Be for qemu-devel@nongnu.org; Fri, 01 Oct 2010 14:22:27 -0400 Received: from adelie.canonical.com ([91.189.90.139]:55224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1kEi-0003gt-1r for qemu-devel@nongnu.org; Fri, 01 Oct 2010 14:21:36 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1P1kEe-0003O6-TV for ; Fri, 01 Oct 2010 19:21:33 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 956882E80C6 for ; Fri, 1 Oct 2010 18:21:27 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 01 Oct 2010 18:14:15 -0000 From: blueswirl <597402@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100622193019.15208.62389.malonedeb@potassium.ubuntu.com> Message-Id: <20101001181415.19326.48658.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 597402] Re: qemu does not call unlink() on temp files in snapshot mode Reply-To: Bug 597402 <597402@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Does not seem to happen anymore: strace -etrace=3Dunlink -esignal=3D -f ./qemu -drive file=3D/dev/null,snaps= hot=3Don unlink("/tmp/vl.jUbLWz") =3D 0 ** Changed in: qemu Status: New =3D> Fix Committed -- = qemu does not call unlink() on temp files in snapshot mode https://bugs.launchpad.net/bugs/597402 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Fix Committed Bug description: =3D=3D overview =3D=3D When booting guests in snapshot mode qemu never calls unlink() on the files storing changes to the images. This results in large amounts of disk space being used over time. This bug seems to have been introduced by qemu git commit b6ce07aa83bdee3cf= d2610f270a0ce304e78df95 =3D=3D steps to reproduce =3D=3D 1) Boot a guest like so: qemu -m 512 -drive file=3D/scratch/images/mdroth/rhel54_64_base.raw,snapshot=3Don =3D=3D actual results =3D=3D /tmp/vl.* files are created and never unlinked/deleted. for example: mdroth@illuin:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 -m 51= 2 -drive file=3D/media/secondary/vm/fc12_64_base.raw,snapshot=3Don & [1] 24080 mdroth@illuin:~/dev/kvm/qemu-build$ ls -l /tmp/vl* -rw------- 1 mdroth mdroth 262144 2010-06-22 14:21 /tmp/vl.tFSAmR mdroth@illuin:~/dev/kvm/qemu-build$ fuser /tmp/vl* /tmp/vl.tFSAmR: 24080 =3D=3D expected results =3D=3D temporary files should immediately be unlink()'ed and not be present in the= file listing. =3D=3D system details =3D=3D mdroth@illuin:~/dev/kvm/qemu-build$ uname -a Linux illuin 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 = x86_64 GNU/Linux latest commit (cada87c432e3b9cd55869a24055baf2b7bc0b70c) from qemu.git mast= er branch: mdroth@illuin:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 --ver= sion QEMU emulator version 0.12.50, Copyright (c) 2003-2008 Fabrice Bellard