qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
To: qemu-devel@nongnu.org
Cc: EQX <eqx@gmx.net>
Subject: Re: [Qemu-devel] How are the temporary files (-snapshot) created on Linux?
Date: Fri, 12 Sep 2008 12:18:50 +0200	[thread overview]
Message-ID: <200809121218.50167.yann.morin.1998@anciens.enib.fr> (raw)
In-Reply-To: <20080912080402.1m7hh8oc0sgs4wsw@www.idoru.ch>

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.  |
`------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2008-09-12 10:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-12  6:04 [Qemu-devel] How are the temporary files (-snapshot) created on Linux? EQX
2008-09-12 10:18 ` Yann E. MORIN [this message]
2008-09-12 11:24   ` Steve Fosdick
2008-09-12 14:52     ` EQX
2008-09-12 16:57     ` Jamie Lokier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200809121218.50167.yann.morin.1998@anciens.enib.fr \
    --to=yann.morin.1998@anciens.enib.fr \
    --cc=eqx@gmx.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).