From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuZIo-00068G-16 for qemu-devel@nongnu.org; Wed, 13 Dec 2006 13:58:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuZIl-00067F-Di for qemu-devel@nongnu.org; Wed, 13 Dec 2006 13:58:01 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuZIl-000679-7Q for qemu-devel@nongnu.org; Wed, 13 Dec 2006 13:57:59 -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 1GuZIl-00006T-68 for qemu-devel@nongnu.org; Wed, 13 Dec 2006 13:57:59 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GuZIV-0003ym-D4 for qemu-devel@nongnu.org; Wed, 13 Dec 2006 19:57:43 +0100 Received: from 137.red-80-25-49.staticip.rima-tde.net ([80.25.49.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Dec 2006 19:57:43 +0100 Received: from sfandino by 137.red-80-25-49.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Dec 2006 19:57:43 +0100 From: Salvador Fandino Date: Wed, 13 Dec 2006 20:03:13 +0100 Message-ID: <45804E71.8080504@yahoo.com> References: <20061212171340.GA24143@nevyn.them.org> <20061212173322.5126.qmail@web26813.mail.ukl.yahoo.com> <20061212174214.GA25284@nevyn.them.org> <457FF0AA.7070100@xtal.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit In-Reply-To: <457FF0AA.7070100@xtal.rwth-aachen.de> 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 Jan Marten Simons wrote: > Salvador Fandino schrieb: >> 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 >> > The code of lomount might be what you're looking for. Lomount allows one > to mount partions (via loop) from a raw diskimage. That was my intention, but I have found that lomount handling of EBR and logical partition is not correct, they perform as if EBR where structured as MBR, what is wrong! Anyway, I have implemented the partition table parsing from scratch and upload a new version of qemu-nbds.c to the QEMU forum. Cheers, - Salva