From owner-freebsd-stable@FreeBSD.ORG Thu Jul 23 14:14:41 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 D127E10656FD for ; Thu, 23 Jul 2009 14:14:41 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail2.es.net [IPv6:2001:400:107:1::2]) by mx1.freebsd.org (Postfix) with ESMTP id B90378FC33 for ; Thu, 23 Jul 2009 14:14:41 +0000 (UTC) (envelope-from oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id n6NEEe8f026204 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 23 Jul 2009 07:14:41 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id A69EF1CC0B; Thu, 23 Jul 2009 07:14:40 -0700 (PDT) To: Eugene Grosbein In-reply-to: Your message of "Thu, 23 Jul 2009 13:53:17 +0800." <20090723055317.GA72627@svzserv.kemerovo.su> Date: Thu, 23 Jul 2009 07:14:40 -0700 From: "Kevin Oberman" Message-Id: <20090723141440.A69EF1CC0B@ptavv.es.net> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-07-23_08:2009-07-20, 2009-07-23, 2009-07-23 signatures=0 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 14:14:42 -0000 > Date: Thu, 23 Jul 2009 13:53:17 +0800 > From: Eugene Grosbein > Sender: owner-freebsd-stable@freebsd.org > > 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. > > If not, there should be polling anyway. 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.) -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751