Fix typo in IsLikelyNotMountPoint function comment: --bin -> --bind

This commit is contained in:
Junyoung, Sung 2019-03-08 00:54:58 +09:00
parent dcbe588f76
commit f76de72816

View File

@ -226,7 +226,7 @@ func (mounter *Mounter) IsNotMountPoint(dir string) (bool, error) {
// IsLikelyNotMountPoint determines if a directory is not a mountpoint.
// It is fast but not necessarily ALWAYS correct. If the path is in fact
// a bind mount from one part of a mount to another it will not be detected.
// mkdir /tmp/a /tmp/b; mount --bin /tmp/a /tmp/b; IsLikelyNotMountPoint("/tmp/b")
// mkdir /tmp/a /tmp/b; mount --bind /tmp/a /tmp/b; IsLikelyNotMountPoint("/tmp/b")
// will return true. When in fact /tmp/b is a mount point. If this situation
// if of interest to you, don't use this function...
func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error) {