Re: [Qemu-devel] Re: RE : Re: Re: NBD server for QEMU images

2006-12-14 Thread Jim C. Brown
On Thu, Dec 14, 2006 at 09:37:32AM +0100, Salvador Fandino wrote: > Jim C. Brown wrote: > > >> 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. > >> > > > > It only uses the first two.

[Qemu-devel] Re: RE : Re: Re: NBD server for QEMU images

2006-12-14 Thread Salvador Fandino
Jim C. Brown wrote: >> 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. >> > > It only uses the first two. It reads in the rest but ignores them. Could I be looking at an old version of lomoun

Re: [Qemu-devel] Re: RE : Re: Re: NBD server for QEMU images

2006-12-13 Thread Jim C. Brown
On Wed, Dec 13, 2006 at 11:07:54PM +0100, Salvador Fandino wrote: > 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. > >>

[Qemu-devel] Re: RE : Re: Re: NBD server for QEMU images

2006-12-13 Thread Salvador Fandino
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 >>

Re: [Qemu-devel] Re: RE : Re: Re: NBD server for QEMU images

2006-12-13 Thread Jim C. Brown
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

[Qemu-devel] Re: RE : Re: Re: NBD server for QEMU images

2006-12-13 Thread Salvador Fandino
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 wor

Re: [Qemu-devel] Re: RE : Re: Re: NBD server for QEMU images

2006-12-13 Thread Jan Marten Simons
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 incorpora

[Qemu-devel] Re: RE : Re: Re: NBD server for QEMU images

2006-12-12 Thread Salvador Fandino
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 m

[Qemu-devel] Re: RE : Re: Re: NBD server for QEMU images

2006-12-12 Thread Salvador Fandino
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