Add support to display slave device stats for software RAIDs.
authorShehjar Tikoo <shehjart@gelato.unsw.edu.au>
Tue, 30 Sep 2008 00:35:44 +0000 (10:35 +1000)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 30 Sep 2008 06:34:55 +0000 (08:34 +0200)
commit6742301361b7eeded19656ac18a09fde33122b74
tree86021c27f7b083cbbb52a05180dd802e9e6463ce
parent6820cb3b32d771decbf76bf58c526e7ae1b2f31d
Add support to display slave device stats for software RAIDs.

When running tests on a device created using mdadm, the relevant
disk statistics must also come from the individual
disks that constitute the RAID, because the software RAID device
is just a virtual device.

This patch goes through the 'slaves' directory in the software
RAID device's directory in /sys/block, gets a list of all the
slave devices and creates a master-slave relationship between
the virtual device and the actual disks.

The individual slave disks' stats are displayed along with the
master's disk stats at the end of the test.

Signed-off-by: Shehjar Tikoo <shehjart@gelato.unsw.edu.au>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diskutil.c
fio.h