More on hotplug issue w/HAL

David Zeuthen david at fubar.dk
Mon Jan 5 02:58:37 EET 2004


On Mon, 2004-01-05 at 01:36, Matthew Mastracci wrote:
> Okay- figured this one out.  The reason my hotplugged devices weren't
> showing up was because of this bit of code in
> linux_class_block_check_if_ready_to_add:
> 
>     if( !is_probing )
>     {
>         /** We really need to invoke udev soon */
>         if( device_file!=NULL && strcmp(device_file,
> "fixme-invoke-udev")!=0 )
>         {
>             ds_gdl_add(d);
>         }
>     }
>     else
>     {
> 	...
>     }
> 
> I've whipped up a quick-and-dirty udev-invoking snippet to make this
> "just work", but it's a big security issue and contains nasty code.  
> I'm just re-writing it in proper C - I can send you a patch when it's
> ready to go.
> 


Oh, this morning I actually did fix this - it's in CVS! It requires
udev-012. Does HAL from CVS work with your device on hotplug then? 

Cheers,
David





More information about the xdg mailing list