Project

General

Profile

Bug #7460

iostat -xn shouldn't print device name in the last column

Added by Yuri Pankov over 3 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
Low
Assignee:
-
Category:
cmd - userland programs
Start date:
2016-10-09
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

adding -n to iostat -x moves the device name to the last column.

iostat -x:

                 extended device statistics
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b
rpool     0.0    0.3    1.2    2.4  0.0  0.0   14.1   0   0
sd0       0.0    0.3    1.2    2.4  0.0  0.0    2.0   0   0
sd1       0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd2       0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd3       0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0
sd13      0.0    0.0    0.0    0.0  0.0  0.0    0.0   0   0

iostat -xn:

                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
    0.0    0.3    1.2    2.4  0.0  0.0   11.7    2.4   0   0 rpool
    0.0    0.3    1.2    2.4  0.0  0.0    0.6    1.4   0   0 c1t0d0
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t1d0
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t2d0
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t3d0

History

#1

Updated by Gary Mills over 3 years ago

How do you propose to fix this change of column for the device name? The reason it's done this way is that the instance names, like sd0, are shorter than the descriptive names, like c0t0d0. Descriptive names that include a WWN can be extremely long.

#2

Updated by Josef Sipek over 3 years ago

I think I misunderstood this bug report at first. Just to make sure I understand, you are not saying to remove the last column, but rather you are saying that the device column changes depending on if -n is specified, right?

#3

Updated by Yuri Pankov over 2 years ago

  • Status changed from New to Rejected

Also available in: Atom PDF