Merge pull request #747 from tmm1/patch-3

Proper fix for unavailable /proc/filesystems
pull/750/head
shirou 6 years ago committed by GitHub
commit ffb381dc5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -244,7 +244,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
}
fs, err := getFileSystems()
if err != nil && all {
if err != nil && !all {
return nil, err
}

Loading…
Cancel
Save