1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

[disk][linux] Fix comment in PartitionsWithContext

This commit is contained in:
Lomanic 2019-02-22 19:41:13 +01:00
parent 0d3a2ac515
commit 368a865910

View File

@ -232,7 +232,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
if err != err.(*os.PathError) {
return nil, err
}
//if kernel not support self/mountinfo
// if kernel does not support self/mountinfo, fallback to self/mounts (<2.6.26)
useMounts = true
filename = common.HostProc("self/mounts")
lines, err = common.ReadLines(filename)