From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 28 13:40:49 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B706816A4D3; Mon, 28 Mar 2005 13:40:49 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id E801D43D2F; Mon, 28 Mar 2005 13:40:48 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j2SDecsf094811 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 28 Mar 2005 15:40:40 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j2SDeMVK087749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Mar 2005 15:40:22 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j2SDeLLs027479; Mon, 28 Mar 2005 15:40:21 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j2SDeLZO027478; Mon, 28 Mar 2005 15:40:21 +0200 (CEST) (envelope-from ticso) Date: Mon, 28 Mar 2005 15:40:21 +0200 From: Bernd Walter To: Poul-Henning Kamp Message-ID: <20050328134020.GE14532@cicely12.cicely.de> References: <20050328131318.GC14532@cicely12.cicely.de> <31970.1112016818@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31970.1112016818@critter.freebsd.dk> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: "current@freebsd.org" cc: John Baldwin cc: Vladimir Grebenschikov cc: "Matthew N. Dodd" cc: freebsd-mobile@FreeBSD.org cc: Julian Elischer cc: ticso@cicely.de Subject: Re: Reattach/redetect allways connected umass device - is it possible ? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 13:40:49 -0000 On Mon, Mar 28, 2005 at 03:33:38PM +0200, Poul-Henning Kamp wrote: > In message <20050328131318.GC14532@cicely12.cicely.de>, Bernd Walter writes: > >On Mon, Mar 28, 2005 at 02:13:16PM +0200, Poul-Henning Kamp wrote: > >> In message <20050328114633.GZ14532@cicely12.cicely.de>, Bernd Walter writes: > >> > >> >> camcontrol detach da0; camcontrol rescan all > >> >> helps, but, it should be much better if it will be issued automatically. > >> > > >> >Yes - GEOM seems to ignore media change signals from drives. > >> >I've added PHK to the recipient list - maybe he has an idea about this > >> >problem. > >> > >> No, GEOM doesn't ignore any such thing, because as far as I know > >> GEOM doesn't get any such thing to ignore in the first place. > > > >At least with (most) SCSI devices you get a media changed exception > >on the first access after that. > > Yes, but sane people would argue that is one turn too late in the > game, whouldn' they ? Ack. > We should get an async event as soon as the media disappears. Well - the without a request the drive has no transaction handle to contact the host. And we don't always have a physcial SCSI bus - e.g. USB devices can't contact the host without the host issuing a transfer. If you want media change events earlier we have to explizitly ask the devices. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de