common.c:get_parent_sysfs_path() does not get the parent device
David Zeuthen
david at fubar.dk
Tue Nov 30 19:45:58 PST 2004
On Sat, 2004-11-06 at 05:03 +0100, Kay Sievers wrote:
> Hey David,
> hald is unable to recognize all scsi bus devices of my usb stick.
> A whole chain of parent object lookup fails for:
> devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/host1/target1:0:0/1:0:0:0
>
> cause:
> devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/host1/target1:0:0
>
> is not a device we get an event for and therefore can't be found as a
> parent in the store.
<snip>
> I'm not sure if we really can assume that every directory in sysfs
> is a device we got an earlier event for?
>
Obviously not. From the discussion on linux-scsi it looks that change is
here to stay.
> Any ideas?
>
Yah, I fixed this - your patch didn't handle the coldplug case but we
also handle that now. I've committed this to the hal 0.4.x stable
branch. Check it out!
Cheers,
David
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list