From owner-freebsd-current@FreeBSD.ORG Tue Mar 29 08:13:07 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E140916A5A9 for ; Tue, 29 Mar 2005 08:13:07 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F2F843D41 for ; Tue, 29 Mar 2005 08:13:07 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j2T8AqHl096199; Tue, 29 Mar 2005 01:10:52 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 29 Mar 2005 01:10:54 -0700 (MST) Message-Id: <20050329.011054.68136294.imp@bsdimp.com> To: phk@phk.freebsd.dk From: "M. Warner Losh" In-Reply-To: <30956.1112011996@critter.freebsd.dk> References: <20050328114633.GZ14532@cicely12.cicely.de> <30956.1112011996@critter.freebsd.dk> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: current@freebsd.org cc: vova@fbsd.ru cc: mdodd@freebsd.org cc: freebsd-mobile@freebsd.org cc: julian@elischer.org cc: ticso@cicely.de Subject: Re: Reattach/redetect allways connected umass device - is it possible ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 29 Mar 2005 08:13:08 -0000 In message: <30956.1112011996@critter.freebsd.dk> "Poul-Henning Kamp" writes: : 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. The usb dongles don't appear to 'generate media gone on walkabout events' as far as I've seen. However, we should investigate the possibility of querying the status for at each open, and updating the geometry, et al, if it has changed. This kind of polling would be 'lazy' so it wouldn't interfere with other parts of the system, but it would likely be sufficient (since eject in the middle of I/O will generate an I/O error). Warner