From owner-freebsd-geom@FreeBSD.ORG Thu Sep 8 12:22:20 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 49E9D106564A for ; Thu, 8 Sep 2011 12:22:20 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 01C928FC08 for ; Thu, 8 Sep 2011 12:22:19 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R1dNv-0007uS-AA for freebsd-geom@freebsd.org; Thu, 08 Sep 2011 14:07:11 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Sep 2011 14:07:10 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Sep 2011 14:07:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Thu, 08 Sep 2011 14:06:50 +0200 Lines: 16 Message-ID: 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: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.1) Gecko/20110907 Thunderbird/6.0.1 In-Reply-To: <4E688D78.7080902@yandex.ru> X-Enigmail-Version: 1.1.2 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 12:22:20 -0000 On 08/09/2011 11:40, Andrey V. Elsukov wrote: > On 08.09.2011 13:29, Lev Serebryakov wrote: >> Hello, Lev. >> You wrote 8 сентября 2011 г., 13:24:04: >> >>> I can not find any utility to dump inn shell-parseable form all >>> consumer-producer graph. >> It could be detected by "geom list " and checking, that >> "Mode" is r0w0e0, but it I don't understand how could I determine >> by . Some classes are obvious ("stripe/name" has class >> "stripe"), but some -- not (ada0s1 has class "part"), and here is no >> guarantee, that "part" is only special case. > > You can try parse sysctl kern.geom.confxml Or for shell scripting rather kern.geom.conftxt.