Date: Thu, 08 Sep 2011 13:40:08 +0400 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: lev@FreeBSD.org Cc: freebsd-geom@FreeBSD.org Subject: Re: Is here any way for shell script to understand, is GEOM consumed or not? Message-ID: <4E688D78.7080902@yandex.ru> In-Reply-To: <261371084.20110908132956@serebryakov.spb.ru> References: <1451397574.20110908132404@serebryakov.spb.ru> <261371084.20110908132956@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <class> list <name>" and checking, that > "Mode" is r0w0e0, but it I don't understand how could I determine > <class> by <name>. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E688D78.7080902>