Subject: PATCH: `dkctl dev' shows everything
To: None <tech-userlevel@NetBSD.org>
From: Masao Uebayashi <uebayasi@gmail.com>
List: tech-userlevel
Date: 12/05/2007 12:35:27
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
        dk4: wd0g, 4128768 blocks at 169440831, type: ffs
        dk4 at wd0: wd0g
        dk4: 4128768 blocks at 169440831, type: ffs
        dk3: wd0f, 1032192 blocks at 168408639, type: ffs
        dk3 at wd0: wd0f
        dk3: 1032192 blocks at 168408639, type: ffs
        dk2: wd0e, 166860288 blocks at 1548351, type: ffs
        dk2 at wd0: wd0e
        dk2: 166860288 blocks at 1548351, type: ffs
        dk1: wd0b, 1032192 blocks at 516159, type: swap
        dk1 at wd0: wd0b
        dk1: 1032192 blocks at 516159, type: swap
        dk0: wd0a, 516096 blocks at 63, type: ffs
        dk0 at wd0: wd0a
        dk0: 516096 blocks at 63, type: ffs

Masao