From owner-freebsd-stable@FreeBSD.ORG Fri Feb 10 18:32:44 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2142F16A420 for ; Fri, 10 Feb 2006 18:32:44 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3777D43D45 for ; Fri, 10 Feb 2006 18:32:42 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (varonk@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k1AIWZvq076285 for ; Fri, 10 Feb 2006 19:32:41 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k1AIWZhl076284; Fri, 10 Feb 2006 19:32:35 +0100 (CET) (envelope-from olli) Date: Fri, 10 Feb 2006 19:32:35 +0100 (CET) Message-Id: <200602101832.k1AIWZhl076284@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG In-Reply-To: <5f67a8c40602100619v4ce3ab7fof3c0d45c51bd2a74@mail.gmail.com> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 10 Feb 2006 19:32:41 +0100 (CET) Cc: Subject: Re: USB Flash reader under RELENG_6: force GEOM rescan X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2006 18:32:44 -0000 Zaphod Beeblebrox wrote: > On 2/10/06, Oliver Fromme 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