From owner-freebsd-current@FreeBSD.ORG Mon Jul 2 04:50:43 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 344C016A469 for ; Mon, 2 Jul 2007 04:50:43 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id E9FD513C45B for ; Mon, 2 Jul 2007 04:50:42 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 8B9F417380; Mon, 2 Jul 2007 04:50:41 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id l624ofZk054254; Mon, 2 Jul 2007 04:50:41 GMT (envelope-from phk@critter.freebsd.dk) To: Nate Lawson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 01 Jul 2007 21:46:04 MST." <4688830C.6050701@root.org> Date: Mon, 02 Jul 2007 04:50:41 +0000 Message-ID: <54253.1183351841@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: 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 04:50:43 -0000 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. -- 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.