From 8d22915181074ba3cc954dae752a64385b57070b Mon Sep 17 00:00:00 2001 From: shirou Date: Sun, 18 Dec 2022 13:11:56 +0900 Subject: [PATCH] [disk][darwin]: add issue URL --- disk/disk_darwin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/disk/disk_darwin.go b/disk/disk_darwin.go index 555ac36..933cb04 100644 --- a/disk/disk_darwin.go +++ b/disk/disk_darwin.go @@ -27,6 +27,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro // On 10.14, and possibly other OS versions, the actual count may // be less than from the first call. Truncate to the returned count // to prevent accessing uninitialized entries. + // https://github.com/shirou/gopsutil/issues/1390 fs = fs[:count] for _, stat := range fs { opts := []string{"rw"}