From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZJ0T-00070n-Cm for qemu-devel@nongnu.org; Wed, 12 Mar 2008 00:56:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZJ0R-000706-I2 for qemu-devel@nongnu.org; Wed, 12 Mar 2008 00:56:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZJ0R-000701-BC for qemu-devel@nongnu.org; Wed, 12 Mar 2008 00:55:59 -0400 Received: from wr-out-0506.google.com ([64.233.184.225]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JZJ0Q-0006Iw-WC for qemu-devel@nongnu.org; Wed, 12 Mar 2008 00:55:59 -0400 Received: by wr-out-0506.google.com with SMTP id 76so1671307wra.10 for ; Tue, 11 Mar 2008 21:55:55 -0700 (PDT) Message-ID: <47D76258.4020207@codemonkey.ws> Date: Tue, 11 Mar 2008 23:55:52 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Modify qemu-img to mount locally disk image using NBD (v2) References: <47D70C23.9030808@bellard.org> In-Reply-To: <47D70C23.9030808@bellard.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.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. > > >