From aa4c84c6b384de7445ab3506ddf89825154ca823 Mon Sep 17 00:00:00 2001 From: Greg <2582552+gdvalle@users.noreply.github.com> Date: Thu, 17 Aug 2023 09:37:46 -0500 Subject: [PATCH] Update disk/disk_linux.go Co-authored-by: shirou --- disk/disk_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/disk_linux.go b/disk/disk_linux.go index f43780f..2632a28 100644 --- a/disk/disk_linux.go +++ b/disk/disk_linux.go @@ -478,7 +478,7 @@ func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOC // Since `name`` here is already a basename, re-add a hardcoded /dev path. // This is not ideal, but we may break the API by changing how SerialNumberWithContext // works. - d.SerialNumber, _ = SerialNumberWithContext(ctx, "/dev/"+name) + d.SerialNumber, _ = SerialNumberWithContext(ctx, common.HostDevWithContext(ctx, name)) d.Label, _ = LabelWithContext(ctx, name) ret[name] = d