Package: kvm Version: 60+dfsg-1 Severity: normal
kvm always creates snapshots (-snapshot option) in /tmp. This is a problem if partition holding /tmp is not big enough to hold the snapshots. Attached is a patch from Debian qemu package (if set, $TMPDIR is used instead of /tmp). -- Package-specific info: /proc/cpuinfo: processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 9 model name : Intel(R) Pentium(R) M processor 1700MHz stepping : 5 cpu MHz : 600.000 cache size : 1024 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe up est tm2 bogomips : 1196.96 clflush size : 64 -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages kvm depends on: ii adduser 3.105 add and remove users and groups ii bridge-utils 1.4-1 Utilities for configuring the Linu ii iproute 20080108-1 Professional tools to control the ii libasound2 1.0.16-1 ALSA library ii libc6 2.7-6 GNU C Library: Shared libraries ii libgnutls13 2.0.4-3 the GNU TLS library - runtime libr ii libsdl1.2debian 1.2.13-2 Simple DirectMedia Layer ii vgabios 0.6a-3 VGA BIOS software for the Bochs an ii zlib1g 1:1.2.3.3.dfsg-11 compression library - runtime Versions of packages kvm recommends: ii kvm-source 60+dfsg-1 Source for the KVM driver ii linux-image-2.6.22-3-686 2.6.22-6.lenny1 Linux 2.6.22 image on PPro/Celeron ii qemu 0.9.1-1 fast processor emulator ii vde2 2.2.0-pre2-1 Virtual Distributed Ethernet -- no debconf information
Index: block.c =================================================================== --- block.c.orig 2008-01-28 02:21:48.000000000 +0100 +++ block.c 2008-01-28 02:22:42.000000000 +0100 @@ -191,8 +191,12 @@ void get_tmp_filename(char *filename, int size) { int fd; + char *tmpdir; /* XXX: race condition possible */ - pstrcpy(filename, size, "/tmp/vl.XXXXXX"); + tmpdir = getenv("TMPDIR"); + if (!tmpdir) + tmpdir = "/tmp"; + snprintf(filename, size, "%s/vl.XXXXXX", tmpdir); fd = mkstemp(filename); close(fd); }