From owner-freebsd-geom@FreeBSD.ORG Fri Aug 2 13:38:18 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 9223FCAC; Fri, 2 Aug 2013 13:38:18 +0000 (UTC) (envelope-from fluca1978@gmail.com) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F31392769; Fri, 2 Aug 2013 13:38:17 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id c11so529009wgh.32 for ; Fri, 02 Aug 2013 06:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=EBDoMgIlz5+ev3DoXjhNx63Hz6Ec8/f5ZwYVQZ4C6OU=; b=VTvtprFtDiwBs5jSBdecn+oI+Zz9O8yDDWac3Rox8XbDZBDc4J1myd7pOcOE0Cgthj tT1eW97MYvQ9oGkIaH/tf3Se+P17MM7BA7VYUT/CP5Zp7u4GnlZzmRt0FtZFg9g0HXjU D6Bg/GH3RxGIEK4tjCVuE+asKB4TUDCxLOh8zx8Xq8U/JNQ7wAuAa/j+9Jj6cJtQ4HQ5 j1Ma3/ksMKnTYjnYwMwiT5NqVJHM0S1NQw/vSaP6iAg7FYe9rGkKm5geJvraBn7nFTEO EmxH2kOLPk/gJ9VPmbv9026ZRD76iYnlvgWktZGoZ8Xb6ohTVPSeUnL/yhnC4EvXkZVZ KsIw== MIME-Version: 1.0 X-Received: by 10.194.172.9 with SMTP id ay9mr3506259wjc.54.1375450696265; Fri, 02 Aug 2013 06:38:16 -0700 (PDT) Sender: fluca1978@gmail.com Received: by 10.194.157.194 with HTTP; Fri, 2 Aug 2013 06:38:16 -0700 (PDT) In-Reply-To: <1219950283.20130802160914@serebryakov.spb.ru> References: <20130730214114.GL13659@lor.one-eyed-alien.net> <331012162.20130801122156@serebryakov.spb.ru> <34816369.20130801172618@serebryakov.spb.ru> <1219950283.20130802160914@serebryakov.spb.ru> Date: Fri, 2 Aug 2013 15:38:16 +0200 X-Google-Sender-Auth: ypMU2N2fKeCLF0G9UXzmpuKrlTY Message-ID: Subject: Re: How to disable all GEOM tasting? From: Luca Ferrari To: lev@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 02 Aug 2013 13:38:18 -0000 On Fri, Aug 2, 2013 at 2:09 PM, Lev Serebryakov wrote: > How will you do this? With kernel debugger? :) Or you could not load this > class, of course. It is too strong solution -- Seems to me that each class has a "taste" method pointer (the g_taste_event - but I've not the source at hand right now). > what if you need tasting of > some devices but not other? This is interesting: effectively it could happen that a class have to serve both tasteable and not tasteable devices. Would it be possible to remove the tasting when the class is instantied (i.e., becomes a geom)? Luca