Add new counters for flush requests in Linux 5.5 (#1548)
* Add diskstat flush request counters for Linux 5.5+ * Update tests for diskstat flush request counters with Linux 5.5+ Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
This commit is contained in:
parent
67d3010a79
commit
3c2c4e7b3c
4 changed files with 48 additions and 0 deletions
|
|
@ -41,4 +41,12 @@ func TestDiskStats(t *testing.T) {
|
|||
if want, got := "11130", diskStats["sdb"][14]; want != got {
|
||||
t.Errorf("want diskstats sdb %s, got %s", want, got)
|
||||
}
|
||||
|
||||
if want, got := "1555", diskStats["sdc"][15]; want != got {
|
||||
t.Errorf("want diskstats sdc %s, got %s", want, got)
|
||||
}
|
||||
|
||||
if want, got := "1944", diskStats["sdc"][16]; want != got {
|
||||
t.Errorf("want diskstats sdc %s, got %s", want, got)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue