Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle 32-bit overflows in disk utilization stats
Linux prints [1] some of the values reported in block device's `stat` sysfs file as 32-bit unsigned integers. fio interprets them as 64-bit integers when reading that sysfs file and performs further arithmetics on them in 64-bits. If the reported value overflows during fio run, a huge bogus value is reported in the "disk utilization" block instead. [1] https://source.corp.google.com/h/kernel/pub/scm/linux/kernel/git/torvalds/linux/+/refs/tags/v5.10:block/genhd.c;l=1301-1328;drc=7e890c37c25c7cbca37ff0ab292873d8146e713b Signed-off-by: Alexey Neyman <aneyman@google.com>
- Loading branch information