From owner-freebsd-geom@FreeBSD.ORG Thu Sep 8 15:36:22 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E47CA106566B; Thu, 8 Sep 2011 15:36:22 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id B37908FC0C; Thu, 8 Sep 2011 15:36:22 +0000 (UTC) Received: from gjp by noop.in-addr.com with local (Exim 4.76 (FreeBSD)) (envelope-from ) id 1R1geL-0007fk-PZ; Thu, 08 Sep 2011 11:36:21 -0400 Date: Thu, 8 Sep 2011 11:36:21 -0400 From: Gary Palmer To: Lev Serebryakov Message-ID: <20110908153621.GB42938@in-addr.com> References: <1451397574.20110908132404@serebryakov.spb.ru> <261371084.20110908132956@serebryakov.spb.ru> <4E688D78.7080902@yandex.ru> <627749234.20110908185718@serebryakov.spb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <627749234.20110908185718@serebryakov.spb.ru> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on noop.in-addr.com); SAEximRunCond expanded to false Cc: Ivan Voras , freebsd-geom@freebsd.org Subject: Re: Is here any way for shell script to understand, is GEOM consumed or not? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 15:36:23 -0000 On Thu, Sep 08, 2011 at 06:57:18PM +0400, Lev Serebryakov wrote: > Hello, Ivan. > You wrote 8 ???????????????? 2011 ??., 16:06:50: > > >> You can try parse sysctl kern.geom.confxml > > Or for shell scripting rather kern.geom.conftxt. > > % sysctl kern.geom.conftxt > % sysctl kern.geom.confxml > % su > Password: > blob# sysctl kern.geom.conftxt > blob# sysctl kern.geom.confxml > blob# exit > % uname -orsp > FreeBSD 8.2-STABLE amd64 > % They are opague sysctls and not shown by default. Try sysctl -b kern.geom.conftxt sysctl -b kern.geom.confxml Regards Gary