From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GucBP-0005Pj-NA for qemu-devel@nongnu.org; Wed, 13 Dec 2006 17:02:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GucBO-0005OW-S2 for qemu-devel@nongnu.org; Wed, 13 Dec 2006 17:02:35 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GucBO-0005OI-NJ for qemu-devel@nongnu.org; Wed, 13 Dec 2006 17:02:34 -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 1GucBO-0007uX-6m for qemu-devel@nongnu.org; Wed, 13 Dec 2006 17:02:34 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GucBE-0008SM-JC for qemu-devel@nongnu.org; Wed, 13 Dec 2006 23:02:24 +0100 Received: from 212-73-35-85.red-acceso.airtel.net ([212.73.35.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Dec 2006 23:02:24 +0100 Received: from sfandino by 212-73-35-85.red-acceso.airtel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Dec 2006 23:02:24 +0100 From: Salvador Fandino Date: Wed, 13 Dec 2006 23:07:54 +0100 Message-ID: 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> <45804E71.8080504@yahoo.com> <20061213200312.GA12107@jbrown.mylinuxbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit In-Reply-To: <20061213200312.GA12107@jbrown.mylinuxbox.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 Jim C. Brown wrote: > On Wed, Dec 13, 2006 at 08:03:13PM +0100, Salvador Fandino wrote: >>> 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! >> >> Cheers, >> >> - Salva >> > > How is it incorrect? What needs to be fixed? > > My understanding is that the extended partition has a partition table > set up with the first partition entry pointing to the logical partition, > the second entry pointing to a partition table that exists immediately > after the logical partition, and then the 3rd and 4th entries are not > used. The second partition table is structed the same way, so you > essentially have a linked list of extended partitions. (Unlike the MBR, > there are no boot sectors associated with these partition tables.) > yes, that's right, but it's not what lomount does. It parses the data on the EBR in the same way as the MBR, reading 4 partition registers from them. EBRs are explained here: http://en.wikipedia.org/wiki/Extended_Boot_Record I believe that the implementation in the last version of qemu-nbds I have uploaded to the forum is correct. Cheers, - Salva