USB Flash reader under RELENG_6: force GEOM rescan

Oliver Fromme olli at lurza.secnetix.de
Fri Feb 10 10:32:44 PST 2006


Zaphod Beeblebrox <zbeeble at gmail.com> wrote:
 > On 2/10/06, Oliver Fromme <olli at lurza.secnetix.de> wrote:
 > > Concerning the SCSI and CAM code I'm not an expert, but I
 > > think it should be possible to nudge devfs when a rescan
 > > has detected a new device.
 > 
 > You'd think, but no.  You see, the device , according to CAM, doesn't
 > change.  Magically, it has more blocks, but it's the "same" device to cam.

Yes, that's how the code currently handles it.  It needs
to be changed.  When the card reader is inserted, the SCSI
code _does_ detect that no medium is inserted (it logs
"Medium not present").  Upon the first successful access
to the device -- no matter what kind of access -- there
must be a medium present, obviously, so the code _should_
rescan the device and arrange for devfs to create the
necessary nodes.

Actually, it's very similar to other kinds of removable
media, such as SCSI CD-ROM drives.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

C++: "an octopus made by nailing extra legs onto a dog"
        -- Steve Taylor, 1998


More information about the freebsd-stable mailing list