Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel 4.18+ appends four more fields putting the total at 18 #17

Open
neohe opened this issue Nov 13, 2018 · 4 comments
Open

Kernel 4.18+ appends four more fields putting the total at 18 #17

neohe opened this issue Nov 13, 2018 · 4 comments

Comments

@neohe
Copy link

neohe commented Nov 13, 2018

nux/iostat.go

Line 72 in d5bf087

if size != 14 {

Kernel 4.18+ appends four more fields for discard tracking putting the total at 18:
15 - discards completed successfully
16 - discards merged
17 - sectors discarded
18 - time spent discarding

https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats

@Livezxy
Copy link

Livezxy commented Jun 14, 2019

你好,这个pr目前合并了吗,我试着用github.com/shirou/gopsutil重写diskio模块,转过来想找找作者... 发现了这个pr

@mdh67899
Copy link
Contributor

@live-xy 没有,你要临时用的话手动把我代码里的iostat.go文件拿过去替换吧
https://github.com/mdh67899/nux/blob/diskstats-patch/iostat.go

@Livezxy
Copy link

Livezxy commented Jun 14, 2019 via email

@taomaree
Copy link
Contributor

#24 这个PR实现相同的功能,已经合并到 master 了。

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

No branches or pull requests

4 participants