* [Qemu-devel] Qemu snapshot mode: /tmp/vl.xxx file missing?
@ 2009-08-11 16:53 Atoosah
2009-08-12 7:47 ` Mulyadi Santosa
0 siblings, 1 reply; 4+ messages in thread
From: Atoosah @ 2009-08-11 16:53 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]
When using the -snapshot mode of Qemu, shouldn't the vl.xxx file that is
created be visible in the host /tmp directory?
I use the command: $qemu -snapshot -hda disk_image.img -m 256
which seems to write the file to /tmp/vl.xxx where xxx is some random
filename chosen by Qemu during every boot (I see this by commenting
[QEMU_PATH]/block.c I'm using a modified version of qemu-0.8.2 on a Linux
machine, but I also can't find the vl.xxx file that's created using
qemu-0.9.0.
In the documentation, it says that when using snapshot mode "When sectors in
[misspelling] in written, they are written in a temporary file created in
'/tmp'..." but i cannot see the file that is supposedly created on the host
directory /tmp (or in QEMU_PATH directory). Where is Qemu actually writting
to in snapshot mode, before commit ever occurs?
Any suggestions and ideas would be helpful.
thank you,
Atoosaah
[-- Attachment #2: Type: text/html, Size: 973 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Qemu snapshot mode: /tmp/vl.xxx file missing?
2009-08-11 16:53 [Qemu-devel] Qemu snapshot mode: /tmp/vl.xxx file missing? Atoosah
@ 2009-08-12 7:47 ` Mulyadi Santosa
2009-08-17 19:57 ` Atoosah
0 siblings, 1 reply; 4+ messages in thread
From: Mulyadi Santosa @ 2009-08-12 7:47 UTC (permalink / raw)
To: Atoosah; +Cc: qemu-devel
On Tue, Aug 11, 2009 at 11:53 PM, Atoosah<atoosaah@gmail.com> wrote:
> When using the -snapshot mode of Qemu, shouldn't the vl.xxx file that is
> created be visible in the host /tmp directory?
IIRC, the trick is to create (open) the file and write to it...but
Qemu also unlink it as soon as it is created.
This way, the file become invisible but still accessible until Qemu close it
You might want to read "man 2 unlink" for further explanation.
--
regards,
Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Qemu snapshot mode: /tmp/vl.xxx file missing?
2009-08-12 7:47 ` Mulyadi Santosa
@ 2009-08-17 19:57 ` Atoosah
2009-08-18 3:40 ` Mulyadi Santosa
0 siblings, 1 reply; 4+ messages in thread
From: Atoosah @ 2009-08-17 19:57 UTC (permalink / raw)
To: Mulyadi Santosa; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]
Thank you! Found the deleted file via "lsof" command.
-Atoosaah
On Wed, Aug 12, 2009 at 12:47 AM, Mulyadi Santosa <mulyadi.santosa@gmail.com
> wrote:
> On Tue, Aug 11, 2009 at 11:53 PM, Atoosah<atoosaah@gmail.com> wrote:
> > When using the -snapshot mode of Qemu, shouldn't the vl.xxx file that is
> > created be visible in the host /tmp directory?
>
> IIRC, the trick is to create (open) the file and write to it...but
> Qemu also unlink it as soon as it is created.
>
> This way, the file become invisible but still accessible until Qemu close
> it
>
> You might want to read "man 2 unlink" for further explanation.
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer
> blog: the-hydra.blogspot.com
>
[-- Attachment #2: Type: text/html, Size: 1519 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-18 3:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 16:53 [Qemu-devel] Qemu snapshot mode: /tmp/vl.xxx file missing? Atoosah
2009-08-12 7:47 ` Mulyadi Santosa
2009-08-17 19:57 ` Atoosah
2009-08-18 3:40 ` Mulyadi Santosa
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).