All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Modify qemu-img to mount locally disk image using NBD (v2)
Date: Tue, 11 Mar 2008 23:55:52 -0500	[thread overview]
Message-ID: <47D76258.4020207@codemonkey.ws> (raw)
In-Reply-To: <47D70C23.9030808@bellard.org>

Fabrice Bellard wrote:
> Laurent Vivier wrote:
>   
>> This patch is a new version of qemu-img using NBD device to mount Qemu
>> disk image.
>>
>> To not hang on UP system, it needs following patch:
>> http://article.gmane.org/gmane.linux.drivers.nbd.general/42
>> If you want to use loop to see partitions, you need this patch:
>> http://article.gmane.org/gmane.linux.kernel/651269
>> otherwise use kpartx (see kpartx package of your distro).
>>
>> This patch implements in qemu-img the client and the server of the nbd protocol.
>> Moreover, to avoid to specify a port to use, it creates a UNIX socket instead of
>> a INET socket.
>>
>> It adds two actions to qemu-img:
>> - bind, to bind a disk image to a NBD device,
>>
>>   qemu-img bind [-d] [-f fmt] device filename
>>
>>      ('-d' to daemonize)
>>
>> - unbind, to unbind it.
>>
>>   qemu-img unbind device
>> [...]
>>     
>
> Perhaps adding a new specialized tool would be better as there is no
> direct relation with qemu-img.
>   

I've been maintaining a separate tool for a while now (qemu-nbd) that 
uses the QEMU block driver code.  If there's interest in merging it, 
I'll happily submit patches.

Regards,

Anthony Liguori

> Fabrice.
>
>
>   

  reply	other threads:[~2008-03-12  4:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-10 12:24 [Qemu-devel] [PATCH] Modify qemu-img to mount locally disk image using NBD (v2) Laurent Vivier
2008-03-11 22:48 ` Fabrice Bellard
2008-03-12  4:55   ` Anthony Liguori [this message]
2008-03-21 13:08     ` Laurent Vivier

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=47D76258.4020207@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.