Skip to content

Commit

Permalink
ignore /proc/filesystems errors on android
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Jul 22, 2019
1 parent 507e2f7 commit ea0f864
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion disk/disk_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"

Expand Down Expand Up @@ -244,7 +245,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
}

fs, err := getFileSystems()
if err != nil {
if err != nil && runtime.GOOS != "android" {
return nil, err
}

Expand Down

0 comments on commit ea0f864

Please sign in to comment.