From owner-freebsd-geom@FreeBSD.ORG Thu Sep 8 09:40:41 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 3C0F31065679; Thu, 8 Sep 2011 09:40:41 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward15.mail.yandex.net (forward15.mail.yandex.net [IPv6:2a02:6b8:0:801::5]) by mx1.freebsd.org (Postfix) with ESMTP id AD2B28FC19; Thu, 8 Sep 2011 09:40:40 +0000 (UTC) Received: from smtp12.mail.yandex.net (smtp12.mail.yandex.net [95.108.131.191]) by forward15.mail.yandex.net (Yandex) with ESMTP id C15B09E23AA; Thu, 8 Sep 2011 13:40:08 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1315474809; bh=ppMbOcpptA46zmWlB3Z+jOzX6js0oPcW2TzdJY4Q5M4=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=DTVobiVDBQ+ug72KzhbXb0JZxrmjh5EjG0WKS0PzOh32wRcLscERbCZm6fGfNxZEe xEMFQLrZd7D8ePQjON5iD91d65gZyLZkHg50QWHE8OHE5JsDQF/eehqfAYO5PakNqW 68o8TejIeGKsVirptJFPoWThpBMiMDSOrsAcS+rc= Received: from smtp12.mail.yandex.net (localhost [127.0.0.1]) by smtp12.mail.yandex.net (Yandex) with ESMTP id ABD7316A03C8; Thu, 8 Sep 2011 13:40:08 +0400 (MSD) Received: from ns.kirov.so-ups.ru (ns.kirov.so-ups.ru [178.74.170.1]) by smtp12.mail.yandex.net (nwsmtp/Yandex) with ESMTP id e8n0651A-e8nmk28q; Thu, 8 Sep 2011 13:40:08 +0400 X-Yandex-Spam: 1 Message-ID: <4E688D78.7080902@yandex.ru> Date: Thu, 08 Sep 2011 13:40:08 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: lev@FreeBSD.org References: <1451397574.20110908132404@serebryakov.spb.ru> <261371084.20110908132956@serebryakov.spb.ru> In-Reply-To: <261371084.20110908132956@serebryakov.spb.ru> X-Enigmail-Version: 1.3 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit 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 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:40:41 -0000 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 -- WBR, Andrey V. Elsukov