Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2006 19:32:35 +0100 (CET)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: USB Flash reader under RELENG_6: force GEOM rescan
Message-ID:  <200602101832.k1AIWZhl076284@lurza.secnetix.de>
In-Reply-To: <5f67a8c40602100619v4ce3ab7fof3c0d45c51bd2a74@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Zaphod Beeblebrox <zbeeble@gmail.com> wrote:
 > On 2/10/06, Oliver Fromme <olli@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602101832.k1AIWZhl076284>