Take 2 on [PATCH ]Re: hal doesn't recognize mounting of devices

Jon Nettleton jon.nettleton at gmail.com
Sun Oct 30 18:13:54 PST 2005


I am still bopping around trying to cleanup a bunch of problems I have
been having with usb drives and such.  I think it is starting to get
under control.  This morning I kind of took a take 2 look on the sleep
patch used to fix the race condition between the netlink message and
the /proc/mounts update.

Attached is an updated patch that takes the is_mounted state of the
volume into account and tries to make the update as short as possible
but looping through a couple of times for the best coverage of high
latency scenarios.

Right now I am making each iteration sleep a little longer, thinking if
it is taking this long to get an update things might be really slow.
The algorithm can probably be improved upon, but I didn't want to go
nuts until I ran the whole idea by you guys.

Any feedback would be great.

Jon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-workaround_is_mounted_2.patch
Type: text/x-patch
Size: 4297 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20051030/cfe18aea/hal-workaround_is_mounted_2.bin


More information about the hal mailing list