From owner-freebsd-geom@FreeBSD.ORG Thu Apr 7 08:41:17 2011 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC8E9106564A; Thu, 7 Apr 2011 08:41:17 +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 72C2A8FC0C; Thu, 7 Apr 2011 08:41:17 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id B78AA5E2A; Thu, 7 Apr 2011 08:41:15 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.4/8.14.4) with ESMTP id p378fExJ054078; Thu, 7 Apr 2011 08:41:15 GMT (envelope-from phk@critter.freebsd.dk) To: Andriy Gapon From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 07 Apr 2011 08:26:40 +0300." <4D9D4B10.1080501@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Date: Thu, 07 Apr 2011 08:41:14 +0000 Message-ID: <54077.1302165674@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-geom@FreeBSD.org Subject: Re: geom and removable media X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2011 08:41:17 -0000 In message <4D9D4B10.1080501@FreeBSD.org>, Andriy Gapon writes: >on 07/04/2011 03:09 Poul-Henning Kamp said the following: >> In message <4D9C7B52.5010207@FreeBSD.org>, Andriy Gapon writes: >> >>> Suppose we implemented a mechanism to detect removal or change of removable media >>> (e.g. for optical discs in cd drives). How to signal media removal (or change)? >>> Destroy the existing and create a new disk(9)? >>> Or do some sort of geom spoil on it? >> >> Basically yes. > >Apologies, but yes to what? :) To Both :-) Look at g_wither_provider() as a starting point. -- 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.