From owner-freebsd-geom@FreeBSD.ORG Tue Jul 30 23:13:56 2013 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5437163E for ; Tue, 30 Jul 2013 23:13:56 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EAC5E2F67 for ; Tue, 30 Jul 2013 23:13:54 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.5/8.14.5) with ESMTP id r6UNDmZA071333; Tue, 30 Jul 2013 18:13:48 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.7/8.14.7/Submit) id r6UNDmCq071332; Tue, 30 Jul 2013 18:13:48 -0500 (CDT) (envelope-from brooks) Date: Tue, 30 Jul 2013 18:13:48 -0500 From: Brooks Davis To: Rotate 13 Subject: Re: How to disable all GEOM tasting? Message-ID: <20130730231348.GN13659@lor.one-eyed-alien.net> References: <20130730214114.GL13659@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5FetH82qe0Z6y/zI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-geom@freebsd.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jul 2013 23:13:56 -0000 --5FetH82qe0Z6y/zI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 30, 2013 at 10:19:54PM +0000, Rotate 13 wrote: > On Tue, 30 Jul 2013 16:41:14 -0500, Brooks Davis wro= te: >=20 > > On Mon, Jul 29, 2013 at 05:14:04PM +0000, Rotate 13 wrote: > >> How to disable *all* GEOM tasting of newly-attached devices? I looked > >> through the manuals, searched web, grepped sysctl -ad. I only find > >> sysctl to disable all tasting for graid (kern.geom.raid.enable). > >> > >> Example, if I have removable drive I want to pop in and access from > >> userland with open("/dev/foo0", O_RDONLY); without various GEOM > >> modules first trying to understand. > > > > As far as I know there is no way to do this, but the existence of > > partition tables shouldn't have any effect on your ability to open the = raw > > device as long as you haven't configured something in devd or similar to > > open those partitions. >=20 > Any pointer to look in sources for where triggers the tasting? I > understand each GEOM has the taste code of its own... but something > must start it all when device is inserted. The creation of a geom provider triggers the tasting. I suppose you could create a new driver to matches the device preferentally to umass or what ever device it normally attaches it and provides a simple node for it. That sounds like a lot of work and you haven't explained why you can't just let the tasting happen and ignore any partions that are found. -- Brooks --5FetH82qe0Z6y/zI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFR+EirXY6L6fI4GtQRAvzBAKCdNetTEW94JubgosKxb0kzzbEImACffDWb uouBr1+cEqlS9XVAJQtOIq0= =eRuk -----END PGP SIGNATURE----- --5FetH82qe0Z6y/zI--