qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 597402] Re: qemu does not call unlink() on temp files


From: Aurelien Jarno
Subject: [Qemu-devel] [Bug 597402] Re: qemu does not call unlink() on temp files in snapshot mode
Date: Sun, 20 Feb 2011 17:13:41 -0000

** Changed in: qemu
       Status: Fix Committed => 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/597402

Title:
  qemu does not call unlink() on temp files in snapshot mode

Status in QEMU:
  Fix Released

Bug description:
  == overview ==

  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
  b6ce07aa83bdee3cfd2610f270a0ce304e78df95

  == steps to reproduce ==

  1) Boot a guest like so:

  qemu -m 512 -drive
  file=/scratch/images/mdroth/rhel54_64_base.raw,snapshot=on

  == actual results ==

  /tmp/vl.* files are created and never unlinked/deleted. for example:

  address@hidden:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 -m 512 
-drive file=/media/secondary/vm/fc12_64_base.raw,snapshot=on &
  [1] 24080

  address@hidden:~/dev/kvm/qemu-build$ ls -l /tmp/vl*
  -rw------- 1 mdroth mdroth 262144 2010-06-22 14:21 /tmp/vl.tFSAmR

  address@hidden:~/dev/kvm/qemu-build$ fuser /tmp/vl*
  /tmp/vl.tFSAmR:      24080

  == expected results ==

  temporary files should immediately be unlink()'ed and not be present in the 
file
  listing.

  == system details ==

  address@hidden:~/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
  master branch:

  address@hidden:~/dev/kvm/qemu-build$ x86_64-softmmu/qemu-system-x86_64 
--version
  QEMU emulator version 0.12.50, Copyright (c) 2003-2008 Fabrice Bellard



reply via email to

[Prev in Thread] Current Thread [Next in Thread]