[disk][darwin]: add issue URL

pull/1392/head
shirou 2 years ago committed by GitHub
parent c2fa2cbf8e
commit 8d22915181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"}

Loading…
Cancel
Save