From owner-freebsd-current@FreeBSD.ORG Sun Oct 10 15:54:18 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 ED61D1065698; Sun, 10 Oct 2010 15:54:18 +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 5E8598FC15; Sun, 10 Oct 2010 15:54:17 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 888F545E8E; Sun, 10 Oct 2010 17:54:16 +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 DB24245CAC; Sun, 10 Oct 2010 17:54:10 +0200 (CEST) Date: Sun, 10 Oct 2010 17:53:40 +0200 From: Pawel Jakub Dawidek To: Alexander Motin Message-ID: <20101010155340.GQ1733@garage.freebsd.pl> References: <4CA3BD7C.9080306@feral.com> <4CA4CCE3.9060408@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0Qexx6XJGNEACt6j" Content-Disposition: inline In-Reply-To: <4CA4CCE3.9060408@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: sos@FreeBSD.org, FreeBSD-Current , Andriy Gapon , phk@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: Sun, 10 Oct 2010 15:54:19 -0000 --0Qexx6XJGNEACt6j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 30, 2010 at 08:46:11PM +0300, Alexander Motin wrote: > Andriy Gapon wrote: > > on 30/09/2010 01:28 Matthew Jacob said the following: > >> If something like that was in place, I assure you that things would st= art to use > >> it very quickly. > >=20 > > I am not sure about this. > > Because, e.g. I don't see an easy way to know that media is changed in = scsi_cd > > driver. That is, without polling. I don't consider polling to be an e= asy way for > > a number of reasons. >=20 > SATA specification defines concept of Asynchronous Notification. It is > already used by port multipliers to report about PHY events. It is also > supposed to be used by CD drives to report media change. I haven't seen > such devices yet, but hope they may appear sometimes. >=20 > And even without AN support it would be nice to implement proper > handling for SCSI "UA - media changed" errors within CAM. It still won't > be perfect without using polling, but probably still something. I'd like to know the original reason why CD device is represented by GEOM provider and not CD media. For my naive thinking CD media should be GEOM provider that we taste once the media is inserted and orphan once the media is removed. I don't see any reasons for CD device to be useful GEOM provider, but maybe I'm overlooking something. Poul-Henning or Soren, do you remember who made and why this design choice? --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --0Qexx6XJGNEACt6j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkyx4YQACgkQForvXbEpPzR0cQCg7Lp+sRsDQmbHM5t3NLUqH8F0 9o8An2F+2UZHWAjtP0DNvDTLbrK/TeJk =cIDJ -----END PGP SIGNATURE----- --0Qexx6XJGNEACt6j--