From owner-freebsd-stable@FreeBSD.ORG Thu Jul 23 15:59:01 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93487106566B for ; Thu, 23 Jul 2009 15:59:01 +0000 (UTC) (envelope-from peter@simons-rock.edu) Received: from hedwig.simons-rock.edu (hedwig.simons-rock.edu [208.81.88.14]) by mx1.freebsd.org (Postfix) with ESMTP id 56C658FC29 for ; Thu, 23 Jul 2009 15:59:01 +0000 (UTC) (envelope-from peter@simons-rock.edu) Received: from cesium.hyperfine.info (c2.8d.5646.static.theplanet.com [70.86.141.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by hedwig.simons-rock.edu (Postfix) with ESMTP id E49DF2BB34D; Thu, 23 Jul 2009 11:33:39 -0400 (EDT) Date: Thu, 23 Jul 2009 11:33:38 -0400 From: "Peter C. Lai" To: Andriy Gapon Message-ID: <20090723153338.GA31463@cesium.hyperfine.info> References: <20090723055317.GA72627@svzserv.kemerovo.su> <20090723141440.A69EF1CC0B@ptavv.es.net> <4A6880A1.3010003@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A6880A1.3010003@icyb.net.ua> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Sagara Wijetunga , Eugene Grosbein , freebsd-stable@freebsd.org Subject: Re: SCSI device not created upon a CF card plug in X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2009 15:59:01 -0000 GEOM should pick up the state change, but the bug may continue to exist because the CF reader is tagged as a storage device with invalid media when umass attaches to it on startup; there wasn't a really good way to actually enumerate the slice table upon insertion because the device does not send a disconnect/reconnect to the bus when you insert the card. At the time, the workaround was to tickle the device by attempting a mount against the whole disk, then the slice table will be enumerated. Example, CF card reader on boot will be picked up as /dev/da4 You insert card, no state change can be detected because the device doesn't get reset on the bus. mount /dev/da0 /mnt <-- will fail for obvious reasons, but now slices are enumerated mount /dev/da0s1f /mnt/mycfcard <-- ok On 2009-07-23 06:24:17PM +0300, Andriy Gapon wrote: > on 23/07/2009 17:14 Kevin Oberman said the following: > > If Linux detects media insertion instantly or Windows detects media > > insertion instantly (which I can confirm), there is some signal > > available, so looking at the Linux driver should provide a clue as to > > what to look for and that can be added to the FreeBSD umass driver. It > > would be a very desirable addition, but I am not volunteering as I > > currently don't use such devices. (And, no one would like the terrible > > code I would write, anyway.) > > Just a note of caution: human "instant" is different from "computer instant". > If OS driver polls, say, every 0.2 seconds, you won't be able to tell the difference. > > -- > Andriy Gapon > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- =========================================================== Peter C. Lai | Bard College at Simon's Rock Systems Administrator | 84 Alford Rd. Information Technology Svcs. | Gt. Barrington, MA 01230 USA peter AT simons-rock.edu | (413) 528-7428 ===========================================================