mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-24 13:48:56 +08:00
Proper fix for unavailable /proc/filesystems
This commit is contained in:
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…
x
Reference in New Issue
Block a user