From owner-freebsd-current@FreeBSD.ORG Sun Jan 30 15:22:40 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 8E3B316A4CE; Sun, 30 Jan 2005 15:22:40 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id D56F743D2F; Sun, 30 Jan 2005 15:22:39 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id j0UFKZDX069176; Sun, 30 Jan 2005 16:20:35 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Alexander Leidinger From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 30 Jan 2005 16:13:23 +0100." <20050130161323.5e25414e@Magellan.Leidinger.net> Date: Sun, 30 Jan 2005 16:20:35 +0100 Message-ID: <69175.1107098435@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: Warner Losh cc: Robert Watson cc: current@freebsd.org cc: pete@altadena.net cc: imp@bsdimp.com Subject: Re: Devd event from GEOM? 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: Sun, 30 Jan 2005 15:22:40 -0000 In message <20050130161323.5e25414e@Magellan.Leidinger.net>, Alexander Leidinger writes: >Let's take a CD for example, when it arrives the auto-mounter mounts it. >Fine, but the CD is locked then. What do we do when we want to remove >the CD? Or another example, an USB stick. The hardware isn't locked, but >when we just remove it, we're calling for a kernel panic. Now that local-storage filesystems are GEOM users, we can actually get the "orphan" event from GEOM communicated to the filesystem which can then take proper evasive action. No filesystem has implemented this yet. -- 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.