Skip to content

Conversation

alexeyklyukin
Copy link
Contributor

Kernels 4.18+ append 4 additional fields to /proc/diskstat output (see https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats), breaking the original code assumption of 14th fields only that was enforced by Sscanln.

The one-liner has been tested with Linux 4.20.7 and 4.4.0.

Kernels 4.18+ append 4 additional fields to /proc/diskstat output,
breaking the original code that uses Sscanln, expecting the device
line to terminate after the 14th field.
@lesovsky lesovsky merged commit c333d5a into lesovsky:master Aug 21, 2019
@alexeyklyukin
Copy link
Contributor Author

Thank you!

@lesovsky
Copy link
Owner

lesovsky commented Aug 21, 2019

Thank you for the PR, glad to seeing this tool is useful for such seasoned DBA like you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants