Skip to content

Commit

Permalink
Fix mount refactor nits
Browse files Browse the repository at this point in the history
  • Loading branch information
pmorie committed Mar 6, 2015
1 parent 2700871 commit 17b51a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/util/mount/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}
2 changes: 1 addition & 1 deletion pkg/util/mount/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17b51a9

Please sign in to comment.