From owner-freebsd-stable@FreeBSD.ORG Mon Feb 27 20:36:47 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64EAC106567A for ; Mon, 27 Feb 2012 20:36:47 +0000 (UTC) (envelope-from vermaden@interia.pl) Received: from smtpo.poczta.interia.pl (smtpo.poczta.interia.pl [217.74.65.207]) by mx1.freebsd.org (Postfix) with ESMTP id 0D9808FC17 for ; Mon, 27 Feb 2012 20:36:46 +0000 (UTC) Date: Mon, 27 Feb 2012 21:36:46 +0100 From: vermaden To: Kevin Oberman , fidaj@ukr.net X-Mailer: interia.pl/pf09 In-Reply-To: References: <4F3EE186.4020801@gmail.com> <201202181409.08859.hselasky@c2i.net> <20120226203949.H89643@sola.nimnet.asn.au> X-Originating-IP: 85.89.187.172 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1330375006; bh=GdcMR2JFhpg/jA5fEdD2GJwE6nvsTX10bo7z35kPbiI=; h=Date:From:Subject:To:Cc:X-Mailer:In-Reply-To:References: X-Originating-IP:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding; b=uQtnOIuDrfhOMr5hJPon0EfOxuwoUg1xNRypcjPoiRXZp9/hcLbq5brK1TCpFkmOT D4bEfY2giiZUgnX7Pn0PAANdnB3eJxmJGY/TRR2ReBNI6x13rV3qjWScEcE0fABt+v GfH9CeTABF2jG5ejDxUcmVv6rdgl+V3/D5e+4gRw= Cc: Hans Petter Selasky , freebsd-stable@freebsd.org, smithi@nimnet.asn.au, lars.engels@0x20.net Subject: Re: devd based AUTOMOUNTER X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 20:36:47 -0000 > Have you read the Porter's Handbook > (http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook)? > It tells you how to make a good port, > how to test it (though I don't think > it has anything on redports, yet), and > how to submit it. I have tried both developers and porters handbooks but havent found info what to do to 'commit' this as a port, should I just submit a PR? > Unfortunately, I spent a few days that would > have to understand how it is possible to > detect the inserted CD-ROM with devd; but > alas - the only thing that detects changes > in the drive CD-ROM - a :sysctl kern.geom.conftxt >=20 > before inserting the disc: > kern.geom.conftxt: 0 DISK cd0 0 2048 hd 0 sc 0 > ... >=20 > after inserting the disc: > kern.geom.conftxt: 0 DISK cd0 4700372992 2048 hd 0 sc 0 Thanks, at least we have 'something' we can cepend on. I can create an 'active wait' daemon for that, like the skel below: while sleep 3 do case $( sysctl -n kern.geom.conftxt ) in (0 DISK cd0 0 2048 hd 0 sc 0) echo "No CD in the drive ..." # umount procedure ... ;; (0 DISK cd0 * * hd 0 sc 0) echo "We have CD here!" # do something about it lile mount_cd9660 ;; esac done But a devd(8) event would be far better, maybe some somple commit to devd(8= ) would help here? My knowledge does not allow me to add these bits to devd= (8). Regards, vermaden