Subject: bin/8389: iostat -x 1 works only for the 4 first drives
To: None <>
From: Mattias Pantzare <>
List: netbsd-bugs
Date: 09/12/1999 14:37:43
>Number:         8389
>Category:       bin
>Synopsis:       iostat -x 1 works only for the 4 first drives
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 12 14:35:00 1999
>Release:        1.4.1
System: NetBSD queeg 1.4.1 NetBSD 1.4.1 (QUEEG) #0: Sat Aug 21 13:17:06 CEST 1999 ragge@queeg:/usr/src/sys/arch/i386/compile/QUEEG i386

iostat -x 1
will give valid data for the 4 first drives, not the other.
iostat -x 1 on a machine with 5 or more drives
selectdrives() will select the 4 first drives, but that is wrong if -x is set
as all the drives will be displayed (dkswap() won't work for the other drives).
Make selectdrives() select all drives if -x is set, or make -x only show 
selected drives.