Skip to content

Commit f76de72

Browse files
committed
Fix typo in IsLikelyNotMountPoint function comment: --bin -> --bind
1 parent dcbe588 commit f76de72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/mount/mount_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func (mounter *Mounter) IsNotMountPoint(dir string) (bool, error) {
226226
// IsLikelyNotMountPoint determines if a directory is not a mountpoint.
227227
// It is fast but not necessarily ALWAYS correct. If the path is in fact
228228
// a bind mount from one part of a mount to another it will not be detected.
229-
// mkdir /tmp/a /tmp/b; mount --bin /tmp/a /tmp/b; IsLikelyNotMountPoint("/tmp/b")
229+
// mkdir /tmp/a /tmp/b; mount --bind /tmp/a /tmp/b; IsLikelyNotMountPoint("/tmp/b")
230230
// will return true. When in fact /tmp/b is a mount point. If this situation
231231
// if of interest to you, don't use this function...
232232
func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error) {

0 commit comments

Comments
 (0)