@@ -41,8 +41,6 @@ type Interface interface {
41
41
// consistent (i.e. it could change between chunked reads). This is guaranteed
42
42
// to be consistent.
43
43
List () ([]MountPoint , error )
44
- // IsMountPointMatch determines if the mountpoint matches the dir.
45
- IsMountPointMatch (mp MountPoint , dir string ) bool
46
44
// IsLikelyNotMountPoint uses heuristics to determine if a directory
47
45
// is not a mountpoint.
48
46
// It should return ErrNotExist when the directory does not exist.
@@ -162,7 +160,7 @@ func GetDeviceNameFromMount(mounter Interface, mountPath string) (string, int, e
162
160
// IsNotMountPoint detects bind mounts in linux.
163
161
// IsNotMountPoint enumerates all the mountpoints using List() and
164
162
// the list of mountpoints may be large, then it uses
165
- // IsMountPointMatch to evaluate whether the directory is a mountpoint.
163
+ // isMountPointMatch to evaluate whether the directory is a mountpoint.
166
164
func IsNotMountPoint (mounter Interface , file string ) (bool , error ) {
167
165
// IsLikelyNotMountPoint provides a quick check
168
166
// to determine whether file IS A mountpoint.
@@ -195,7 +193,7 @@ func IsNotMountPoint(mounter Interface, file string) (bool, error) {
195
193
return notMnt , mountPointsErr
196
194
}
197
195
for _ , mp := range mountPoints {
198
- if mounter . IsMountPointMatch (mp , resolvedFile ) {
196
+ if isMountPointMatch (mp , resolvedFile ) {
199
197
notMnt = false
200
198
break
201
199
}
0 commit comments