From owner-freebsd-current@FreeBSD.ORG Thu Sep 30 11:22:29 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 23F611065742 for ; Thu, 30 Sep 2010 11:22:29 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 6E5AA8FC17 for ; Thu, 30 Sep 2010 11:22:27 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA19695; Thu, 30 Sep 2010 14:22:23 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4CA472EE.7040704@icyb.net.ua> Date: Thu, 30 Sep 2010 14:22:22 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Matthew Jacob References: <20100929211253.GA1250@freebsd.org> <4CA3B393.8060206@icyb.net.ua> <4CA3BD7C.9080306@feral.com> In-Reply-To: <4CA3BD7C.9080306@feral.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@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: Thu, 30 Sep 2010 11:22:29 -0000 on 30/09/2010 01:28 Matthew Jacob said the following: > On 9/29/2010 2:45 PM, Andriy Gapon wrote: >> on 30/09/2010 00:12 Alexander Best said the following: >>> hi there, >>> >>> i wanted to ask if it would be possible to asjust glabel so that e.g. inserting >>> a new media into a dvd-drive gets recognised and glabel displays the lablel >>> right away. >> Yes, of course, as soon as we have in kernel a programmatic way to know that >> media as changed. >> We don't have one right now... >> > > What announcement API would you like to add? Not sure what kind of API you mean and if anything really needs to be added. I think you already can easily trigger GEOM re-tasting. > If something like that was in place, I assure you that things would start to use > it very quickly. 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 easy way for a number of reasons. -- Andriy Gapon