From owner-freebsd-current@FreeBSD.ORG Mon Oct 11 20:12:30 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76C271065672; Mon, 11 Oct 2010 20:12:30 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 1CBE68FC19; Mon, 11 Oct 2010 20:12:29 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id DA44D45EE6; Mon, 11 Oct 2010 22:12:28 +0200 (CEST) Received: from localhost (chello089073192049.chello.pl [89.73.192.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id C137145E93; Mon, 11 Oct 2010 22:12:22 +0200 (CEST) Date: Mon, 11 Oct 2010 22:11:56 +0200 From: Pawel Jakub Dawidek To: John Baldwin Message-ID: <20101011201156.GB2346@garage.freebsd.pl> References: <4CA3BD7C.9080306@feral.com> <20101010155340.GQ1733@garage.freebsd.pl> <4CB22833.70304@FreeBSD.org> <201010111103.26780.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7ZAtKRhVyVSsbBD2" Content-Disposition: inline In-Reply-To: <201010111103.26780.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Alexander Motin , freebsd-current@freebsd.org, Andriy Gapon , sos@freebsd.org Subject: Re: letting glabel recognise a media change 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, 11 Oct 2010 20:12:30 -0000 --7ZAtKRhVyVSsbBD2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 11, 2010 at 11:03:26AM -0400, John Baldwin wrote: > With CD drives you are also rather stuck in that the existing ABI for > controlling CD drives (e.g. ioctls in 3rd party software to eject a CD) a= re > done on the /dev/cdX device. Ideally enclosures for removable media would > be separate devices from the removable media itself, but a lot of existing > software for CD's would break if this changes now. Right, but I still wonder if we could execute provider orphan and retaste on various events like media insertion or removal. If media is removed we orphan provider and recreate it, which will trigger retaste, and this is fine there will be nothing to read from or write to (we will simply return errors as we do now, I think). This way we nicely co-operate with GEOM, but also with other tools that don't require media to be present (if there is no media devfs entry still exists and handles ioctls, it just return errors on read requests). --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --7ZAtKRhVyVSsbBD2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkyzb4wACgkQForvXbEpPzS2kACgwm7yHuK8uCEsKGhWFY0Wc1Fp gMwAnive/5dGqazefom+qhiMVioJ7RVb =5s5S -----END PGP SIGNATURE----- --7ZAtKRhVyVSsbBD2--