pull/1392/head
Brian Ryner 2 years ago
parent c5e42b972f
commit 34da06e9b7

@ -20,7 +20,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
return ret, err return ret, err
} }
fs := make([]unix.Statfs_t, count) fs := make([]unix.Statfs_t, count)
count, err := unix.Getfsstat(fs, unix.MNT_WAIT) count, err = unix.Getfsstat(fs, unix.MNT_WAIT)
if err != nil { if err != nil {
return ret, err return ret, err
} }

Loading…
Cancel
Save