From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 28 15:04:34 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 871E016A4CE; Mon, 28 Mar 2005 15:04:34 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2289343D1D; Mon, 28 Mar 2005 15:04:34 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.201] ([192.168.254.201]) (authenticated bits=0) by pooker.samsco.org (8.13.1/8.13.1) with ESMTP id j2SF1rWB000542; Mon, 28 Mar 2005 08:01:53 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <42481C66.7090409@samsco.org> Date: Mon, 28 Mar 2005 08:01:58 -0700 From: Scott User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.5) Gecko/20050321 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Poul-Henning Kamp References: <32733.1112019870@critter.freebsd.dk> In-Reply-To: <32733.1112019870@critter.freebsd.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: "current@freebsd.org" cc: vova@fbsd.ru 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 List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 15:04:34 -0000 Poul-Henning Kamp wrote: > In message <20050328134856.GF14532@cicely12.cicely.de>, Bernd Walter writes: > > >>>Driver support for this is not really meaterialized and therefore >>>the model now is that when the media is ejected the geom device >>>is removed and a new one created right away, even if a new media >>>is not inserted right away. >> >>Do you get eject notifications from any device type? > > > Right now I belive floppy disks DTRT. > > >>One of my problems is that it is possible with SCSI MO drives to >>eject the media, reinsert a new one and errously continue to work >>with the old GEOM layout. >>I already trashed the data on one media by forgetting to trigger >>a reprobe - since then I use a mount script. > > > Well, I have no idea how to pull the information out of the CAM/SCSI > code, but I'm sure there is _some_ way it can be done. > So are you saying that an async notification mechanism needs to be invented for SCSI, or that all SCSI users should be required to use SES or SAFTE enclosures for all SCSI devices, or that we should be like Windows and constantly poll the devices? Scott