From 6205fcf60d2db865c4f0211577a84f0fd7a9f0b9 Mon Sep 17 00:00:00 2001 From: Stig Larsson Date: Sat, 11 May 2019 14:04:02 +0000 Subject: [PATCH] Correct copy paste mistage in pkg/mount/mountinfo_freebsd.go that caused compile errors. Signed-off-by: Stig Larsson --- pkg/mount/mountinfo_freebsd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/mount/mountinfo_freebsd.go b/pkg/mount/mountinfo_freebsd.go index 36c89dc1a2..7d218b7c39 100644 --- a/pkg/mount/mountinfo_freebsd.go +++ b/pkg/mount/mountinfo_freebsd.go @@ -13,8 +13,8 @@ import ( "unsafe" ) -// Parse /proc/self/mountinfo because comparing Dev and ino does not work from -// bind mounts. + +//parseMountTable returns information about mounted filesystems func parseMountTable(filter FilterFunc) ([]*Info, error) { var rawEntries *C.struct_statfs @@ -37,7 +37,7 @@ func parseMountTable(filter FilterFunc) ([]*Info, error) { if filter != nil { // filter out entries we're not interested in - skip, stop = filter(p) + skip, stop = filter(&mountinfo) if skip { continue }