From 368a8659109f0949d669d454ef359c385b6569e3 Mon Sep 17 00:00:00 2001 From: Lomanic Date: Fri, 22 Feb 2019 19:41:13 +0100 Subject: [PATCH] [disk][linux] Fix comment in PartitionsWithContext --- 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 759259db..51482c0c 100644 --- a/disk/disk_linux.go +++ b/disk/disk_linux.go @@ -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)