Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tapestat: Fix issue when st driver is unloaded then loaded again
tapestat didn't look for the stats dropping back to zero when the st driver is unloaded then loaded again, so you get one really line of really large values when that happens. Fix this problem by adding a check to see if the new stats are less than the old ones and marking any tape where that happens as having invalid stats. The information for that drive will disappear until we have all valid stats again (it's the test for read_time, write_time, and other_time) The test is only needed for those three since if any of them are less than the previously read stats someone has unloaded and reloaded the driver since that's the only time they can reduce in value). Signed-off-by: Shane M. SEYMOUR <[email protected]> Signed-off-by: Sebastien GODARD <[email protected]>
- Loading branch information