fix disk info collection

This commit is contained in:
illustris
2026-03-12 16:03:36 +05:30
parent 3808e3b672
commit 0ba7c190f8
4 changed files with 146 additions and 37 deletions

View File

@@ -27,11 +27,8 @@ func TestParseBlockInfo_Qcow2(t *testing.T) {
if d.Labels["detect_zeroes"] != "on" {
t.Errorf("detect_zeroes = %q", d.Labels["detect_zeroes"])
}
if d.Labels["cache_mode_writeback"] != "true" {
t.Errorf("cache_mode_writeback missing")
}
if d.Labels["cache_mode_direct"] != "true" {
t.Errorf("cache_mode_direct missing")
if d.Labels["cache_mode"] != "writeback, direct" {
t.Errorf("cache_mode = %q, want %q", d.Labels["cache_mode"], "writeback, direct")
}
}