From owner-freebsd-geom@FreeBSD.ORG Thu Sep 8 14:57:23 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 7EC09106566B; Thu, 8 Sep 2011 14:57:23 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 41DCD8FC0C; Thu, 8 Sep 2011 14:57:23 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:14f9:cfdf:caf2:2c18]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 755B34AC31; Thu, 8 Sep 2011 18:57:22 +0400 (MSD) Date: Thu, 8 Sep 2011 18:57:18 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <627749234.20110908185718@serebryakov.spb.ru> To: Ivan Voras In-Reply-To: References: <1451397574.20110908132404@serebryakov.spb.ru> <261371084.20110908132956@serebryakov.spb.ru> <4E688D78.7080902@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: 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 Reply-To: lev@FreeBSD.org 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 14:57:23 -0000 Hello, Ivan. You wrote 8 =D1=81=D0=B5=D0=BD=D1=82=D1=8F=D0=B1=D1=80=D1=8F 2011 =D0=B3., = 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 % --=20 // Black Lion AKA Lev Serebryakov