Fix mount refactor nits

This commit is contained in:
Paul Morie 2015-03-06 11:46:07 -05:00
parent 2700871b04
commit 17b51a93a3
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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 {