From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 28 14:24:45 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 5C2FC16A4CE; Mon, 28 Mar 2005 14:24:45 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE63643D53; Mon, 28 Mar 2005 14:24:44 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.3/8.13.1) with ESMTP id j2SEOUQY032734; Mon, 28 Mar 2005 16:24:30 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: ticso@cicely.de From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 28 Mar 2005 15:48:57 +0200." <20050328134856.GF14532@cicely12.cicely.de> Date: Mon, 28 Mar 2005 16:24:30 +0200 Message-ID: <32733.1112019870@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: "current@freebsd.org" cc: vova@fbsd.ru cc: "Matthew N. Dodd" cc: freebsd-mobile@freebsd.org cc: Julian Elischer 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 14:24:45 -0000 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. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.