From owner-freebsd-geom@FreeBSD.ORG Thu Sep 8 09:24:08 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 E1AAB106566B for ; Thu, 8 Sep 2011 09:24:08 +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 A93E58FC13 for ; Thu, 8 Sep 2011 09:24:08 +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 EF33F4AC58 for ; Thu, 8 Sep 2011 13:24:07 +0400 (MSD) Date: Thu, 8 Sep 2011 13:24:04 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1451397574.20110908132404@serebryakov.spb.ru> To: freebsd-geom@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Subject: 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 09:24:09 -0000 Hello, Freebsd-geom. I need to understand from shell script, is given GEOM consumed, or not. What I mean, I need to distinguish could given GEOM (disk or something else) be added into stripe or mirror. For example, not used disk could be added and disk, which is part of other GEOM, could not. But question is not only about disks, but about more complex classes too. I can not find any utility to dump inn shell-parseable form all consumer-producer graph. --=20 // Black Lion AKA Lev Serebryakov