Proper fix for unavailable /proc/filesystems

pull/747/head
Aman Gupta 6 years ago
parent 903a879e03
commit 74d3cea10f

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