]> granicus.if.org Git - sysstat/commit
iostat: Major code refactoring
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 20 Jul 2019 08:13:23 +0000 (10:13 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 20 Jul 2019 08:13:23 +0000 (10:13 +0200)
commit6857aa71d80d46cf872a3f56f8634a67c62be637
treea3662c88f682a2be4a22ce8cc308f541046d87ad
parent966cd0e5035648d6b67fc927dca8cf7cd463e4c8
iostat: Major code refactoring

This patch adds the following features:
* Structures for devices statistics are now dynamically allocated. It is
no longer possible to miss a device if many of them are added into the
system while iostat is running.
* Check for devices which are removed then inserted again into the
system. iostat will no longer display abormally high numbers in these
cases.
* Better handle devices entered on the command line, which may be
partitions and/or whole devices.

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