Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCrossDevice ¶
CheckCrossDevice - check if any list of paths has any sub-mounts at /proc/mounts.
func IsLikelyMountPoint ¶
IsLikelyMountPoint determines if a directory is 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; IsLikelyMountPoint("/tmp/b") will return false. When in fact /tmp/b is a mount point. If this situation if of interest to you, don't use this function...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.