Commit 17b51a93 authored by Paul Morie's avatar Paul Morie

Fix mount refactor nits

parent 2700871b
...@@ -18,7 +18,7 @@ package mount ...@@ -18,7 +18,7 @@ package mount
// FakeMounter implements mount.Interface. // FakeMounter implements mount.Interface.
type FakeMounter struct { type FakeMounter struct {
mountPoints []MountPoint MountPoints []MountPoint
} }
func (f *FakeMounter) Mount(source string, target string, fstype string, flags uintptr, data string) error { 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 { ...@@ -30,5 +30,5 @@ func (f *FakeMounter) Unmount(target string, flags int) error {
} }
func (f *FakeMounter) List() ([]MountPoint, error) { func (f *FakeMounter) List() ([]MountPoint, error) {
return f.mountPoints, nil return f.MountPoints, nil
} }
...@@ -51,7 +51,7 @@ type MountPoint struct { ...@@ -51,7 +51,7 @@ type MountPoint struct {
} }
// Examines /proc/mounts to find all other references to the device referenced // 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) { func GetMountRefs(mounter Interface, mountPath string) ([]string, error) {
mps, err := mounter.List() mps, err := mounter.List()
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment