From owner-freebsd-stable@FreeBSD.ORG Thu Jul 23 18:59:14 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 04B8010656E7 for ; Thu, 23 Jul 2009 18:59:14 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 5338A8FC17 for ; Thu, 23 Jul 2009 18:59:11 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 071993BC85C; Thu, 23 Jul 2009 14:59:11 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 23 Jul 2009 14:59:11 -0400 X-Sasl-enc: dEf1ZCJBScuDcnQ6OLdgTT1Hwb5vLztPwcc9JCx5s4ID 1248375550 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 42DBCB60E; Thu, 23 Jul 2009 14:59:10 -0400 (EDT) Message-ID: <4A68B2FD.5090807@incunabulum.net> Date: Thu, 23 Jul 2009 19:59:09 +0100 From: Bruce Simpson User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Eugene Grosbein References: <20090722022027.12059.qmail@us1.tomahawkonline.net> <20090722142033.GA13316@svzserv.kemerovo.su> <20090723001338.27858.qmail@us1.tomahawkonline.net> <20090723035900.GA67095@svzserv.kemerovo.su> <20090723021418.29042.qmail@us1.tomahawkonline.net> <20090723055317.GA72627@svzserv.kemerovo.su> In-Reply-To: <20090723055317.GA72627@svzserv.kemerovo.su> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Sagara Wijetunga 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 18:59:14 -0000 Eugene Grosbein wrote: > On Thu, Jul 23, 2009 at 10:14:18AM +0800, Sagara Wijetunga wrote >> If you conversant in this area, could you help us to identify what is/are >> the exact function/s in which program/s to look into identify the media >> insertion activity, so that we can generate relevant devd event. >> > > No, I'm not. In your position I would study the device specs - > does it generate hardware event in case of media change in first place? > > If yes, I'd read sources of umass driver to see how it generates events > for single flash device and add such event for reader's media change. > rwatson@ has or has had a patch to do something like this. It is complicated by the fact that GEOM and NEWBUS don't necessarily talk to each other directly. I agree something needs to be done about removable volume management in FreeBSD. cheers, BMS