From 74d3cea10f1dd555f331bacd531df669f7b3385d Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Mon, 12 Aug 2019 13:20:11 -0700 Subject: [PATCH] Proper fix for unavailable /proc/filesystems --- disk/disk_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/disk_linux.go b/disk/disk_linux.go index 58acb36..8619c50 100644 --- a/disk/disk_linux.go +++ b/disk/disk_linux.go @@ -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 }