mountinfo

package
v0.0.0-...-e9b145e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCrossDevice

func CheckCrossDevice(absPaths []string) error

CheckCrossDevice - check if any list of paths has any sub-mounts at /proc/mounts.

func IsLikelyMountPoint

func IsLikelyMountPoint(file string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL