On Wed, 21 Mar 2007, Allen Curtis wrote:

> > Another approach is to do the polling in userspace rather than in the
> > kernel.  You could write a daemon that would constantly probe all the
> > removable SCSI disk drives.  I don't know of any existing standalone
> > program to do that.
> >
> 
> This is our current, inefficient method. We actually have a batch file 

You mean a shell script?  Or a cron job?

> which sits around in a polling loop trying to mount or unmount the 
> device depending on the current state.
> 
> It does work but it isn't very efficient.

Not efficient in what sense?  Uses too much memory?  Too much system 
overhead?  Too slow to respond?

By many metrics (though not all!) C programs are more efficient than shell 
scripts.

>  We actually did it this way 
> as a "quick fix". I guess we stumbled onto the right solution?

The right sort of solution, anyway.

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to