Is here any way for shell script to understand, is GEOM consumed
or not?
Ivan Voras
ivoras at freebsd.org
Thu Sep 8 12:22:20 UTC 2011
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 <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
Or for shell scripting rather kern.geom.conftxt.
More information about the freebsd-geom
mailing list