Hi,

Toni Timonen wrote:
Package: sysstat
Version: 6.1.3-1
Severity: normal
Tags: patch

getting iostat of one partition fails.
eg.

<<<
[EMAIL PROTECTED]:~/work/m/tmp/sysstat-6.1.3$ ./iostat -p /dev/hda1
Linux 2.6.15-1-686 (sd033)      25/07/06

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          10.86    0.64   35.55    0.72    0.00   52.23

          Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read     
Blk_wrtn
[EMAIL PROTECTED]:~/work/m/tmp/sysstat-6.1.3$

(but running 'iostat -p /dev/hda' gives full output).
A patch to fix this issue is attached.


No, this is not the expected behavior for iostat.
The argument following option "-p" should be a device (like /dev/hda, /dev/sda, etc.), and not a partition (/dev/hda1, ...). "iostat -p /dev/hda" tells iostat to display the statistics for device hda and all its partitions. If you want to display the stats only for hda1, just enter "iostat /dev/hda1" (and not "iostat -p /dev/hda1").

Regards,
--
Sebastien GODARD (sysstat maintainer)
http://perso.orange.fr/sebastien.godard/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to