hal sometimes creates volumes for raw device and partitions

Danny Kukawka danny.kukawka at web.de
Mon Oct 24 04:35:21 PDT 2005


On Monday 24 October 2005 11:13, Martin Pitt wrote:
> > That's what I planed. Check if create a new volume if there is already a
> > volume on the raw device and remove this volume.
>
> Rock! :-)

But this fix not the problem with add the main block partition temporally to 
the device list. This is only a cosmetic fix. With this it could happen 
beyond that depending programms (e.g. addons) are called also if this is no 
valid partition. 

The only to solutions to fix this:
1.) all depending programms must what some seconds and check if there are some 
real partitions anounced for the device and discard the event.

2.) if HAL detects a main block partition/volume we sleep this device befor 
add to devicelist and check after some seconds (3-5) if there are now 
additional real partitons (if so discard the main block device).

Cheers,

Danny


More information about the hal mailing list