qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Add HTTP protocol using curl v2


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] Add HTTP protocol using curl v2
Date: Wed, 06 May 2009 08:59:53 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Kevin Wolf wrote:
Daniel P. Berrange schrieb:
All I care about from libvirt POV, is that there is a way to give QEMU an absolute file path for a disk, and guarentee that QEMU will treat this as
a local file path, and not try any access protocols, other than 'open(2)'.
Various options from this thread....

 - Treat any path starting with / as local file
 - Allow file:  as a prefix
 - Allow file:/// as a prefix, real URI style
 - Add a protocol=file  flag to -drive

Pick one, pick several, suggest more. Any of these options would work as far as I'm concerned, and we could easily support several. I think the
first is desirable because that's the natural thing users will try when
launching QEMU directly.

I think we all agree that file: is a reasonable option for libvirt which
covers all cases of colons (even relative paths starting with http:), so
let's take this one. If you want to magically do the right thing for
users invoking qemu manually, I think we should rather go for:

I've changed my mind. I think file: makes the situation worse because it gives a false sense of security. If you just pass file:<user-inputed-filename> you are broken. You still have to escape commas. If you're escaping commas, you might as well escape colons too.

I think escaping is the only complete solution.

Regards,

Anthony Liguori




reply via email to

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