From owner-freebsd-geom@FreeBSD.ORG Tue Jul 30 22:19: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 A5608E25; Tue, 30 Jul 2013 22:19:56 +0000 (UTC) (envelope-from rabgvzr@gmail.com) Received: from mail-qe0-x235.google.com (mail-qe0-x235.google.com [IPv6:2607:f8b0:400d:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 52CDE2DC5; Tue, 30 Jul 2013 22:19:56 +0000 (UTC) Received: by mail-qe0-f53.google.com with SMTP id f6so3388293qej.26 for ; Tue, 30 Jul 2013 15:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=nMepw8HgfSjQGHt50/EI0MiqmzOHxf7vQ7UL5+pJndc=; b=Hqqlmxr/I8a8ncw1AkK0TopbD4X8sOqm2xc0hOyTg/S+r2g2wR0z+e6kRK9SJVv3E6 cGEL3K5FUxftEmNfaLZ90H5ZgmGdC9jJBjvdzJJZG7Pd2X8fESIrlb6/Nt9vDtJRM72k yjP5Z8KvmpTzXGrVmkhUwTwBACL7YLZGt8o7JMmmk77ClZU4I5BjglogPA8Gz9hzIAFq ZUW2SVf1CdUhIVFog7W/j+YZEw0eWtuHEpXQmZ7wXMTrFyuDNXgIzoJmprg1pc6KyuMT Ouh95eigghgLHR5AGMZHg3TE4qSQnmtqOqL4MC2KESlHpZqXk6tRxGpbUB56L1jqxWAA dz1g== MIME-Version: 1.0 X-Received: by 10.49.134.99 with SMTP id pj3mr78775619qeb.70.1375222794917; Tue, 30 Jul 2013 15:19:54 -0700 (PDT) Received: by 10.49.74.1 with HTTP; Tue, 30 Jul 2013 15:19:54 -0700 (PDT) In-Reply-To: <20130730214114.GL13659@lor.one-eyed-alien.net> References: <20130730214114.GL13659@lor.one-eyed-alien.net> Date: Tue, 30 Jul 2013 22:19:54 +0000 Message-ID: Subject: Re: How to disable all GEOM tasting? From: Rotate 13 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: Brooks Davis 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 22:19:56 -0000 On Tue, 30 Jul 2013 16:41:14 -0500, Brooks Davis wrote: > 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. > > -- Brooks Thanks for reply. 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. I am comfortable reading/writing C code but definitely not kernel hacker. Much easier with small hint in right direction!