From owner-freebsd-current@FreeBSD.ORG Thu Sep 30 22:44:16 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 8CDDC1065673; Thu, 30 Sep 2010 22:44:16 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 400FE8FC1A; Thu, 30 Sep 2010 22:44:16 +0000 (UTC) Received: by iwn34 with SMTP id 34so3712033iwn.13 for ; Thu, 30 Sep 2010 15:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=TBLvS8wpxDKa2B9GxhSJZrUCLUOxnyqa4WhHqGte/tc=; b=uCLjDt+fs4lc9Q0io2N0LU3ocPPrZm3r2ogl0qkWg31sLOwBBjbKoidLipTA7gLTyO sHP0U/heIsVaELLCJGPCbu8chmS4n865v9ITMrAhPPz9/XLwUTlVYPaRTBfhrxP2dLRA YOD1q9IMVx3bHFtNZmX+lX/6oz8OR2wyq7aXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=ndxQX0syjv1BJdxiyMu7abpDwIxrwTm7+Jydvu+vTvd9qt7mp8M1ybykep52KeOBF1 CY8cvhswWL2uxc8ts6IYSt/hXP+x1vRTwj6+CcVQUA6vaJ/ElPJ2E4PvSa52nZ/i4jIv sXyhjLijq/5OEWwTGKmJGqKFQ51+K/nVnMC3E= MIME-Version: 1.0 Received: by 10.231.191.74 with SMTP id dl10mr4501035ibb.157.1285885216030; Thu, 30 Sep 2010 15:20:16 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.231.190.68 with HTTP; Thu, 30 Sep 2010 15:20:15 -0700 (PDT) In-Reply-To: <4CA50363.2030500@FreeBSD.org> References: <20100929211253.GA1250@freebsd.org> <4CA3B393.8060206@icyb.net.ua> <4CA3BD7C.9080306@feral.com> <4CA4FC05.3020407@FreeBSD.org> <4CA5011D.8080804@FreeBSD.org> <4CA50283.4000601@FreeBSD.org> <4CA50363.2030500@FreeBSD.org> Date: Thu, 30 Sep 2010 15:20:15 -0700 X-Google-Sender-Auth: QIU46d3jR-iyIf9kv9l1rCSpcdI Message-ID: From: Garrett Cooper To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 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 22:44:16 -0000 On Thu, Sep 30, 2010 at 2:38 PM, Doug Barton wrote: > On 9/30/2010 2:34 PM, Doug Barton wrote: >> >> On 9/30/2010 2:29 PM, Dimitry Andric wrote: >>> >>> On 2010-09-30 23:07, Doug Barton wrote: >>>> >>>> To what extent is HAL relevant here? I was sort of ambivalent about >>>> using it in FreeBSD, but my recent experimentation with ubuntu is >>>> starting to change my mind. >>> >>> Please read this first: https://wiki.ubuntu.com/Halsectomy :) >> >> Right, especially the bits about moving the functionality into the kernel. > > Sorry, I'm being too terse. What I'm saying is that we have an existing > "notifications" model that third party apps already know how to deal with. > If we're considering developing a notifications model of our own then we are > well served by looking at the work that has gone before (without violating > copyright issues, yadda yadda). The problem is that the current system proposed for Device Kit is based on file system notification. I know we can do this with kqueues to some degree, but we do some of our best work via sysctls, and using other methods of attack, so it would be nice if these were `abstracted' out into generic events with OS specific callback handlers. Anyhow, just something to toss around, but honestly apart from the disc tasting I see via hald whenever I insert a CD or DVD, I could really care less about that functionality, and it could be just as easily implemented via some other mechanism, similar to what we already have in devd, or something more kernel centric like others have suggested before with geom. Thanks! -Garrett