qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [kvm-devel] [RFC][PATCH] Modify loop device to be a


From: Laurent Vivier
Subject: Re: [Qemu-devel] Re: [kvm-devel] [RFC][PATCH] Modify loop device to be able to manage partitions of the image disk
Date: Wed, 16 Jan 2008 00:40:06 +0100

Le mardi 15 janvier 2008 à 18:27 +0000, Daniel P. Berrange a écrit :
> On Tue, Jan 15, 2008 at 07:22:53PM +0100, Laurent Vivier wrote:
> > As it should be useful to be able to mount partition from a 
> > disk image, (and as I need a break in my bug hunting) I've 
> > modified the loop driver to mount raw disk image.
> > 
> > To not break original loop device, as we have to change minor 
> > numbers to manage partitions, a new parameter is added to the module:
> 
> I don't see the point in modifying the loop device driver when you
> can already access the partitions with existing device mapper
> functionality & tools.

There are two reasons:

1- I didn't know kpartx (thank you for the tip)

but using loop device, you will be able to use all partition tables
known by the kernel (acorn,  atari,  efi,  karma,  mac, osf, sun,
ultrix, amiga, ibm, ldm, msdos, sgi, sysv68), whereas kpartx can use
only partition tables it knows (bsd, dasd, dos, mac, sun, efi, sun,
unixware).

2- I'd like to mount qcow2 or others disk image formats, so perhaps it's
easier to modify loop device driver (but perhaps you know another magic
tool ?)

Regards,
Laurent
-- 
----------------- address@hidden  ------------------
  "La perfection est atteinte non quand il ne reste rien à
ajouter mais quand il ne reste rien à enlever." Saint Exupéry

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


reply via email to

[Prev in Thread] Current Thread [Next in Thread]