[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] How are the temporary files (-snapshot) created on Linu
From: |
Yann E. MORIN |
Subject: |
Re: [Qemu-devel] How are the temporary files (-snapshot) created on Linux? |
Date: |
Fri, 12 Sep 2008 12:18:50 +0200 |
User-agent: |
KMail/1.9.9 |
Hello!
On Friday 12 September 2008 08:04:02 EQX wrote:
> The code says the -snapshot temporary files are created here:
> /tmp/vl.*, but they are never visible for users. Using lsof, they have
> a state of 'deleted'. How does this work exactly? What type of file is
> this?
It's done via some incantation of open(2) followed by unlink(2), something
like:
int fd;
fd = open( "/tmp/vl.xxx", O_CREAT|... );
unlink( "/tmp/vl.xxx" );
/* Use the file somehow */
close( fd );
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software Designer | \ / CAMPAIGN | ___ |
| --==< ^_^ >==-- `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
`------------------------------^-------^------------------^--------------------'