Merge pull request #5132 from pmorie/mount-refactor

Fix mount refactor nits
This commit is contained in:
Tim Hockin 2015-03-06 09:00:01 -08:00
commit 788d9994a1
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 {