From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuCTu-0002yT-Qh for qemu-devel@nongnu.org; Tue, 12 Dec 2006 13:35:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuCTu-0002wo-7P for qemu-devel@nongnu.org; Tue, 12 Dec 2006 13:35:58 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuCTt-0002wU-RQ for qemu-devel@nongnu.org; Tue, 12 Dec 2006 13:35:57 -0500 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GuCTt-0003dl-PO for qemu-devel@nongnu.org; Tue, 12 Dec 2006 13:35:57 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GuCTh-0005G3-Rj for qemu-devel@nongnu.org; Tue, 12 Dec 2006 19:35:45 +0100 Received: from 62.87.55.189 ([62.87.55.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Dec 2006 19:35:45 +0100 Received: from sfandino by 62.87.55.189 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Dec 2006 19:35:45 +0100 From: Salvador Fandino Date: Tue, 12 Dec 2006 19:41:00 +0100 Message-ID: References: <20061212171340.GA24143@nevyn.them.org> <20061212173322.5126.qmail@web26813.mail.ukl.yahoo.com> <20061212174214.GA25284@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit In-Reply-To: <20061212174214.GA25284@nevyn.them.org> Sender: news Subject: [Qemu-devel] Re: RE : Re: Re: NBD server for QEMU images 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 Daniel Jacobowitz wrote: > On Tue, Dec 12, 2006 at 06:33:22PM +0100, Sylvain Petreolle wrote: >>>>> It's mostly intended to be used for accessing the files inside QEMU disk >>>>> images locally, without having to launch a virtual machine and accessing >>>>> then from there. >>>> mount -o loop does this. >>> How is everybody missing the point? :-) mount -o loop doesn't mount >>> qcow images. >>> >> Would be that difficult to write a qcow fs module ? > > Probably not, but I think using nbd for it is much nicer. I think > there would be trouble with partitionable devices, though. right now, you can use "-o offset" and "-s size" to serve a partition inside a partitioned disk image. And you can use fdisk or a similar tool to examine the partition table (they work on /dev/nbd0). I am also looking for some working code to parse the MBR to incorporate it in qemu-nbds (something as libparted but simpler), so it would be possible to just indicate the partition number to serve. - Salva