From owner-freebsd-current@FreeBSD.ORG Mon Jul 2 06:05:54 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C46FE16A474 for ; Mon, 2 Jul 2007 06:05:54 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 77D6713C48C for ; Mon, 2 Jul 2007 06:05:54 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.8/8.13.8) with ESMTP id l6265msX023086; Mon, 2 Jul 2007 00:05:48 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <468895B9.2000607@samsco.org> Date: Mon, 02 Jul 2007 00:05:45 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4) Gecko/20070509 SeaMonkey/1.1.2 MIME-Version: 1.0 To: Nate Lawson References: <54253.1183351841@critter.freebsd.dk> <4688878F.20406@root.org> <20070701.233153.-1343615328.imp@bsdimp.com> <4688947D.4040803@root.org> In-Reply-To: <4688947D.4040803@root.org> X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Mon, 02 Jul 2007 00:05:48 -0600 (MDT) X-Spam-Status: No, score=-1.4 required=5.5 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: phk@phk.freebsd.dk, marck@rinet.ru, "M. Warner Losh" , current@freebsd.org Subject: Re: GEOM weirdness with SD flash reader? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2007 06:05:54 -0000 Nate Lawson wrote: > M. Warner Losh wrote: >> In message: <4688878F.20406@root.org> >> Nate Lawson writes: >> : Poul-Henning Kamp wrote: >> : > In message <4688830C.6050701@root.org>, Nate Lawson writes: >> : > >> : >> camcontrol tur (test unit ready) will return an error or success if the >> : >> medium is now present. Kicking off a process to do that when a >> : >> removable media da(4) device appears seems like a good idea. It could >> : >> also be a thread in devd. >> : > >> : > I would call that "The Linux Solution" :-) >> : > >> : > The right place to poll is from scsi_da. >> : >> : I disagree. Once scsi_da found the media, it would then somehow need to >> : notify devd (i.e. to automount). If both functions are in devd, the >> : loop becomes: >> : >> : while (1) { >> : camcontrol tur mydev; >> : if (found) >> : notify_automount; >> : break; >> : sleep 3; >> : } >> >> This doesn't belong in devd. >> >> Robert has patches to bring new geom entries into the realm of devd. > > URL? > I'm going to ask that you guys let me know before you adulterate scsi_da with this. Scott