]> granicus.if.org Git - sysstat/commit
Fix issue with iostat not showing the full device name
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 4 Sep 2015 07:13:43 +0000 (09:13 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 4 Sep 2015 07:13:43 +0000 (09:13 +0200)
commit983ed4f40e60e94445bb6a1a4af0f1afd4a20d77
tree9f512c5020ee650f958a8b06ffdcfb65fc803a55
parente3bd0b57f03e97026d8beb3e0134c1f1d9555ea6
Fix issue with iostat not showing the full device name

The name of a device displayed by iostat may be truncated when it is
long (more than 72 characters).
Increase the MAX_NAME_LEN to 128.

Example with docker containers:

> iostat -N

Linux 3.10.0-229.el7.x86_64 (rhel70)    28/08/15        _x86_64_
(8 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.02    0.00    0.01    0.01    0.05   99.91

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
vda               0.42         4.53         8.60     473380     899091
rhel-root         0.35         4.29         8.53     448487     891062
rhel-swap         0.02         0.02         0.06       2360       5956
docker-253:0-17798675-pool     0.01         0.11         0.01      11487
888
docker-253:0-17798675-985108281c9f035f9301fb9e80c07865e84c4e5565d4dd65a
0.01         0.08         0.00       8645          4

> dmsetup info -c
Name
Maj Min Stat Open Targ Event  UUID
docker-253:0-17798675-pool
253   2 L--w    1    1      0
docker-253:0-17798675-985108281c9f035f9301fb9e80c07865e84c4e5565d4dd65a93a21cfac77eccd
253   3 L--w    1    1      0
rhel-swap
253   1 L--w    2    1      0
LVM-BcxsLXSCKtor2qgE7tHCdf9coPGGAvWYYhAPhuPG9Pvuu7b2ABFxlObdBTVtCf3x
rhel-root
253   0 L--w    1    1      0
LVM-BcxsLXSCKtor2qgE7tHCdf9coPGGAvWYvCpyursTrgSff1q23gtg4m7EVpmeQVvl

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
common.h