[Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Laurent Vivier
Hi, this patch allows to mount qemu disk images on the host. It is based on the Network Block Device protocol and allows qemu-img to become an NBD server (Yes, Anthony, userspace block device is the right way to do that... :-P ). Once you've applied the attached patch to Qemu and build the

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Laurent Vivier
Le vendredi 25 janvier 2008 à 20:52 +0100, Andre Przywara a écrit : Laurent Vivier wrote: Le vendredi 25 janvier 2008 à 09:18 -0600, Anthony Liguori a écrit : Laurent Vivier wrote: Hi, this patch allows to mount qemu disk images on the host. Sorry, I didn't see you did a

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Daniel P. Berrange
On Fri, Jan 25, 2008 at 02:27:34PM -0600, Anthony Liguori wrote: Andre Przywara wrote: Laurent Vivier wrote: What I'm wondering is how loop and device mapper can work ? I shortly evaluated the loop device idea, but came to the conclusion that this not so easy to implement (and would

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Anthony Liguori
Andre Przywara wrote: Laurent Vivier wrote: What I'm wondering is how loop and device mapper can work ? I shortly evaluated the loop device idea, but came to the conclusion that this not so easy to implement (and would require qcow code in the kernel). I see only little chance for this go

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Andre Przywara
Laurent Vivier wrote: Le vendredi 25 janvier 2008 à 09:18 -0600, Anthony Liguori a écrit : Laurent Vivier wrote: Hi, this patch allows to mount qemu disk images on the host. Sorry, I didn't see you did a similar work 19 months ago. Note, the general problem with this approach is that

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Laurent Vivier
Le vendredi 25 janvier 2008 à 09:18 -0600, Anthony Liguori a écrit : Laurent Vivier wrote: Hi, this patch allows to mount qemu disk images on the host. Sorry, I didn't see you did a similar work 19 months ago. Note, the general problem with this approach is that mounting a NBD

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Anthony Liguori
Laurent Vivier wrote: Hi, this patch allows to mount qemu disk images on the host. Note, the general problem with this approach is that mounting a NBD device locally with write access can lead to dead locks. If you look through the mailing list archives, you'll find a number of

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Alexander Graf
On Jan 25, 2008, at 1:58 PM, Laurent Vivier wrote: Le vendredi 25 janvier 2008 à 12:48 +, Johannes Schindelin a écrit : Hi, On Fri, 25 Jan 2008, Laurent Vivier wrote: this patch allows to mount qemu disk images on the host. This patch has an awful lot of #ifdef __linux__ in it. But

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Laurent Vivier
Le vendredi 25 janvier 2008 à 12:48 +, Johannes Schindelin a écrit : Hi, On Fri, 25 Jan 2008, Laurent Vivier wrote: this patch allows to mount qemu disk images on the host. This patch has an awful lot of #ifdef __linux__ in it. But I imagine that you could use it on a non-linux

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Johannes Schindelin
Hi, On Fri, 25 Jan 2008, Laurent Vivier wrote: this patch allows to mount qemu disk images on the host. This patch has an awful lot of #ifdef __linux__ in it. But I imagine that you could use it on a non-linux host, too, for example with yet another qemu instance running Linux... Or

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Laurent Vivier
Le vendredi 25 janvier 2008 à 14:37 +0100, Alexander Graf a écrit : On Jan 25, 2008, at 1:58 PM, Laurent Vivier wrote: Le vendredi 25 janvier 2008 à 12:48 +, Johannes Schindelin a écrit : Hi, On Fri, 25 Jan 2008, Laurent Vivier wrote: this patch allows to mount qemu disk

Re: [Qemu-devel] [PATCH][RFC] To mount qemu disk image on the host

2008-01-25 Thread Anthony Liguori
Laurent Vivier wrote: Hi, this patch allows to mount qemu disk images on the host. It is based on the Network Block Device protocol and allows qemu-img to become an NBD server (Yes, Anthony, userspace block device is the right way to do that... :-P ). FYI, I've been maintaining qemu-nbd