From 17b51a93a3da17a9dca87c3bde52b0a2f3fb8298 Mon Sep 17 00:00:00 2001 From: Paul Morie Date: Fri, 6 Mar 2015 11:46:07 -0500 Subject: [PATCH] Fix mount refactor nits --- pkg/util/mount/fake.go | 4 ++-- pkg/util/mount/mount.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/util/mount/fake.go b/pkg/util/mount/fake.go index 733510674c2..271f7b49e81 100644 --- a/pkg/util/mount/fake.go +++ b/pkg/util/mount/fake.go @@ -18,7 +18,7 @@ package mount // FakeMounter implements mount.Interface. type FakeMounter struct { - mountPoints []MountPoint + MountPoints []MountPoint } func (f *FakeMounter) Mount(source string, target string, fstype string, flags uintptr, data string) error { @@ -30,5 +30,5 @@ func (f *FakeMounter) Unmount(target string, flags int) error { } func (f *FakeMounter) List() ([]MountPoint, error) { - return f.mountPoints, nil + return f.MountPoints, nil } diff --git a/pkg/util/mount/mount.go b/pkg/util/mount/mount.go index 68b9316b629..0526b9c71b8 100644 --- a/pkg/util/mount/mount.go +++ b/pkg/util/mount/mount.go @@ -51,7 +51,7 @@ type MountPoint struct { } // Examines /proc/mounts to find all other references to the device referenced -// by mountPath. +// by mountPath; returns a list of paths. func GetMountRefs(mounter Interface, mountPath string) ([]string, error) { mps, err := mounter.List() if err != nil {