qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Location of temporary file for sectors on Windows (XP)


From: Johannes Schindelin
Subject: Re: [Qemu-devel] Location of temporary file for sectors on Windows (XP)
Date: Tue, 6 Dec 2005 02:30:15 +0100 (CET)

Hi,

On Thu, 1 Dec 2005, W. Craig Scratchley wrote:

> On Windows (XP), however, I am getting files of the form s??? in the C:\
> directory.  This is causing problems at SFU because student accounts don't
> have write access to the C:\ directory and this seems to be causing Qemu to
> immediately crash.
> 
> [...]  
> 
> Seems like an issue which has not yet been addressed for Windows builds.

Correct. The culprit is the function get_tmp_filename() in block.c. Since 
you cannot remove a file, but still keep a filehandle open (on windblows), 
there is no really nice way to go about that.

You *could* make an array of temporary files, and register a cleanup 
function with atexit(), but I do not know if that would be called when 
closing the window by hitting the "x" button (after all, this is my 
favorite way to exit QEmu when I called it with -snapshot).

Hth,
Dscho





reply via email to

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