Card-Reader Problem continued

David Zeuthen david at fubar.dk
Tue May 16 12:38:38 PDT 2006


On Tue, 2006-05-16 at 15:28 -0400, Alan Stern wrote:
> On Tue, 16 May 2006, David Zeuthen wrote:
> 
> > Interesting. Tell me again, How many main block devices
> > e.g. /dev/sda, /dev/sdb etc. does the device provide? One has to keep in
> > mind that we poll _every one_ of these block devices every two seconds.
> > So for a card reader with four main block devices (say /dev/sda
> > through /dev/sdd), which is common, we poll 4 times every two seconds,
> > e.g. every 0.5 seconds in average. 
> 
> The log posted by Christian showed 7 polls ocurring over a period of 515 
> ms.  The LUNs addressed by those polls were 2, 2, 2, 1, 1, 1, 1.

Interesting.

> Could it be that somehow there were four copies of hald running for each 
> LUN?

Entire possible and not unlikely given the logs. However, on shutdown
hald does terminate all helpers. I'd be very surprised to see this on a
fresh reboot unless the installation of hald is screwed.

This is what I get on my system

        # ps ax|grep hald-addon-storage
         1593 ?        S      0:06 /usr/libexec/hald-addon-storage
        14451 ?        S      0:00 /usr/libexec/hald-addon-storage
        14462 ?        S      0:00 /usr/libexec/hald-addon-storage
        14465 ?        S      0:00 /usr/libexec/hald-addon-storage
        14467 ?        S      0:00 /usr/libexec/hald-addon-storage
        
with a 6in1 card reader (4 LUNs) and one optical drive. Maybe I should
make hald-addon-storage should tweak argv[0] to print what device file
it's polling. That would ease debugging quite a bit :-)

Christian, can you confirm you only have a one copy of
hald-addon-storage per LUN of of your card reader? (plus one for your
other removable or hotpluggable storage device)

    David




More information about the hal mailing list