Date: Sun, 01 Jul 2007 21:46:04 -0700 From: Nate Lawson <nate@root.org> To: "M. Warner Losh" <imp@bsdimp.com> Cc: marck@rinet.ru, current@freebsd.org Subject: Re: GEOM weirdness with SD flash reader? Message-ID: <4688830C.6050701@root.org> In-Reply-To: <20070701.221911.1394573729.imp@bsdimp.com> References: <46880F1C.3020602@root.org> <20070701.215557.1373430453.imp@bsdimp.com> <4688791D.6050007@root.org> <20070701.221911.1394573729.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
M. Warner Losh wrote: > In message: <4688791D.6050007@root.org> > Nate Lawson <nate@root.org> writes: > : What if we kicked off a thread to run every 3 seconds that did a quick > : poll of such devices and sent a devd notify if they arrived (i.e. medium > : present)? It wouldn't work for floppy drives, but we could make this > : part of the da driver or something in usermode like devd itself calling > : camcontrol? > > In the past, people have said that polling messes up multimedia > access, so it hasn't happened. > > But wouldn't a simple daemon in userland do the same thing? Or > parsing the output of camcontrol inquiry? Camcontrol rescan is a nop > for these devices. camcontrol tur (test unit ready) will return an error or success if the medium is now present. Kicking off a process to do that when a removable media da(4) device appears seems like a good idea. It could also be a thread in devd. -- Nate
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4688830C.6050701>