usb floppy delays in /sys

David Zeuthen david at fubar.dk
Thu Sep 16 09:13:44 PDT 2004


On Thu, 2004-09-16 at 16:31 +0100, Luke Kenneth Casson Leighton wrote:
> On Thu, Sep 16, 2004 at 04:41:05PM +0200, David Zeuthen wrote:
> > On Thu, 2004-09-16 at 15:39 +0100, Luke Kenneth Casson Leighton wrote:
> > > here y'go.
> > > 
> > > HAL_INFO (("%s, SEQNUM=%d subsystem=%s sysfs_path=%s",
> > > (is_add ? "add" : "rem"), seqnum, subsystem,
> > > sysfs_path_full));
> > > 
> > > 	if (is_add) {
> > > 		int count = 5;
> > > 		do {
> > > 			d = add_device (sysfs_path_full, subsystem);
> > > 			if (d == NULL)
> > > 				sleep(1);
> > > 		} while (d == NULL && count-- > 0);
> > > 
> > > 
> > 
> > Thanks, but this is probably not the right fix IMO; instead you should
> > be extending the list of sysfs file we wait for in tools/hal_hotplug.c.
> > Will that work? 
> 
>  ... i imagine so: it's the same desired effect (i'm pleased to note
>  you've catered for this!)
>
>  so, lshal output attached... minus irrelevant stuff.
> 

Cool, you got a patch for this? It works out of the box for me with my
Lacie USB Floppy Drive so I can't really reproduce the problem.

Thanks,
David

_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list