Bug fix: handles disk device used multiple times
authorAlan D. Brunelle <alan.brunelle@hp.com>
Fri, 11 Sep 2009 18:57:10 +0000 (14:57 -0400)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 11 Sep 2009 19:34:33 +0000 (21:34 +0200)
commitb06de82e3b075874733dd233571499c1c1ca453c
treed1774f628f6a78c3eb5ad37ad6ac591efbea53c2
parent0d5b625cd2f800c64948311cf0f51259d8a83533
Bug fix: handles disk device used multiple times

There were issues in having the same underlying device being referenced
multiple times (via different paths) when reporting storage I/O
statistics. As an example: having two (or more) LVM2/DM volumes crafted
out of the same MD array.

This patch simply skips over any devices previously seen.

Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diskutil.c