[PATCH] LVM2 detection

Florent Mertens flomertens at gmail.com
Wed Oct 24 17:04:46 PDT 2007


Hello all,

This is a start of a patch to get LVM2 detection (and one day
management) in HAL.

It currently generate an Virtual Group (VG) device when needed, and set
info.parent for all Logical Volume (LV) so that the belongs to their
respective VG.

It also add a new lvm capacity with the following properties :

- lvm.version (int) : the version of the LV or VG. Currently always 2
since this patch only support LVM2.
- lvm.group.name (string) : the name of the VG
- lvm.group.physical_volume (string) : the Physical_volume (PV) that are
behind the VG
- lvm.volume.name (string) : the name of the LV
- lvm. volume.group (string) : the udi of the VG of the volume

There is still some things that are missing :
- A way to get the extend size of the group
- A way to get the number of extend used by each volume
- A way to remove VG when they are removed

And some stuff, i'm sure that i didn't do right, like adding a device to
the gdl (how do you do this damn callout?)

So i'd like to get some feedback on my work, before i hack more on it.

Please review.

Thanks,

Mertens Florent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-lvm2.diff
Type: text/x-patch
Size: 11693 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071025/a0b62740/attachment-0001.bin 


More information about the hal mailing list