* [Qemu-devel] -fda fat:dir -snapshot
@ 2010-03-13 19:18 Michael Tokarev
2010-03-15 10:23 ` Kevin Wolf
0 siblings, 1 reply; 3+ messages in thread
From: Michael Tokarev @ 2010-03-13 19:18 UTC (permalink / raw)
To: qemu-devel
Apparently this does not work, and for a loooong time:
$ kvm -fda fat:dir
[ it opens the sdl window ]
$ kvm -fda fat:dir -snapshot
qemu: could not open disk image fat:dir: No such file or directory
Is it supposed to work?
Thanks!
/mjt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] -fda fat:dir -snapshot
2010-03-13 19:18 [Qemu-devel] -fda fat:dir -snapshot Michael Tokarev
@ 2010-03-15 10:23 ` Kevin Wolf
2010-03-15 14:20 ` Michael Tokarev
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Wolf @ 2010-03-15 10:23 UTC (permalink / raw)
To: Michael Tokarev; +Cc: qemu-devel
Am 13.03.2010 20:18, schrieb Michael Tokarev:
> Apparently this does not work, and for a loooong time:
>
> $ kvm -fda fat:dir
> [ it opens the sdl window ]
> $ kvm -fda fat:dir -snapshot
> qemu: could not open disk image fat:dir: No such file or directory
>
> Is it supposed to work?
Wow, that's a crazy case. I guess nobody has ever tested this, and
indeed it looks like it never has worked. As you might know, -snapshot
internally creates a temporary qcow2 image which takes the image you
originally asked for as a backing file.
So we have a qcow2 file with a backing file tmp:dir. Now, backing file
paths are always resolved relative to the COW file, so we get
/tmp/fat:dir. Oops.
We could just disable this for protocols as a quick fix, but I think in
fact you do want to have this behaviour when using protocols as a
backing file for a persistent COW image. I guess this needs some more
thought, especially in respect to the discussions of making
file/host_device/... protocols.
If you really have a use case for this, you can use an absolute path
after fat: as a workaround, it won't touch the path then.
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] -fda fat:dir -snapshot
2010-03-15 10:23 ` Kevin Wolf
@ 2010-03-15 14:20 ` Michael Tokarev
0 siblings, 0 replies; 3+ messages in thread
From: Michael Tokarev @ 2010-03-15 14:20 UTC (permalink / raw)
To: Kevin Wolf; +Cc: qemu-devel
Kevin Wolf wrote:
> Am 13.03.2010 20:18, schrieb Michael Tokarev:
>> Apparently this does not work, and for a loooong time:
>>
>> $ kvm -fda fat:dir
>> [ it opens the sdl window ]
>> $ kvm -fda fat:dir -snapshot
>> qemu: could not open disk image fat:dir: No such file or directory
>>
>> Is it supposed to work?
>
> Wow, that's a crazy case. I guess nobody has ever tested this, and
> indeed it looks like it never has worked. As you might know, -snapshot
> internally creates a temporary qcow2 image which takes the image you
> originally asked for as a backing file.
Yeah, I looked at strace output at least.
[]
> We could just disable this for protocols as a quick fix, but I think in
> fact you do want to have this behaviour when using protocols as a
> backing file for a persistent COW image. I guess this needs some more
> thought, especially in respect to the discussions of making
> file/host_device/... protocols.
>
> If you really have a use case for this, you can use an absolute path
> after fat: as a workaround, it won't touch the path then.
Initially it was a bugreport against kvm in Debian - see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504049
"Virtual FAT drive doesn't work with -snapshot", I'm not
really sure what use case there is. But for me, I already
had a more-or-less valid use case - trying a new driver in
windows, supplying it in a virtual floppy (hence fat:dir)
and checking if it works (hence -snapshot). I actually
tried to do something in the past, but didn't know the fat:
thing (apparently it is not mentioned in the manpage).
But the whole thing indeed looks somewhat.. messy. ;)
Thanks!
/mjt
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-15 14:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-13 19:18 [Qemu-devel] -fda fat:dir -snapshot Michael Tokarev
2010-03-15 10:23 ` Kevin Wolf
2010-03-15 14:20 ` Michael Tokarev
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).