Subject: Re: PATCH: `dkctl dev' shows everything
To: None <tech-userlevel@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: tech-userlevel
Date: 12/05/2007 10:48:00
On Wed, Dec 05, 2007 at 12:35:27PM +0900, Masao Uebayashi wrote:
> This patch makes dkctl(8) command show all the available
> infomation about the device (== you don't need to type long
> command names).
>
> http://www.NetBSD.org/~uebayasi/dkctl.patch
>
> Result looks like:
>
> # dkctl wd0
> strategy:
> wd0d: disksort
>
> cache:
> wd0d: read cache enabled
> wd0d: write-back cache enabled
> wd0d: read cache enable is not changeable
> wd0d: write cache enable is changeable
> wd0d: cache parameters are not savable
>
> wedges:
> wd0d: 6 wedges:
> dk5: wd0h, 314711651 blocks at 173569599, type: ffs
> dk5 at wd0: wd0h
> dk5: 314711651 blocks at 173569599, type: ffs
This is nice. One nit: it seems more appropriate to show the cache
parameters, wedges, et cetera, as properties of the disk itself (wd0)
than to show them as properties of the raw partition (wd0d).
Dave
--
David Young OJC Technologies
dyoung@ojctech.com Urbana, IL * (217) 278-3933 ext 24