# Functions
AddSystemdScope adds "system-run --scope" to given command line implementation is shared with NsEnterMounter.
CleanupMountPoint unmounts the given path and deletes the remaining directory if successful.
GetDeviceNameFromMount given a mnt point, find the device from /proc/mounts returns the device name, reference count, and error code.
IsCorruptedMnt return true if err is about corrupted mount point.
IsNotMountPoint determines if a directory is a mountpoint.
ListProcMounts is shared with NsEnterMounter.
MakeBindOpts detects whether a bind mount is being requested and makes the remount options to use in case of bind mount, due to the fact that bind mount doesn't respect mount options.
MakeMountArgs makes the arguments to the mount(8) command.
New returns a mount.Interface for the current system.
NewFakeExec returns a new FakeExec.
NewOSExec returns a new Exec interface implementation based on exec().
ParseMountInfo parses /proc/xxx/mountinfo.
PathExists returns true if the specified path exists.
PathWithinBase checks if give path is within given base directory.
SearchMountPoints finds all mount references to the source, returns a list of mountpoints.
StartsWithBackstep checks if the given path starts with a backstep segment.
# Constants
FakeActionMount is the string for specifying mount as FakeAction.Action.
FakeActionUnmount is the string for specifying unmount as FakeAction.Action.
# Structs
FakeAction objects are logged every time a fake mount or unmount is called.
FakeExec for testing.
FakeMounter implements mount.Interface for tests.
Mounter provides the default implementation of mount.Interface for the linux platform.
MountInfo represents a single line in /proc/<pid>/mountinfo.
MountPoint represents a single line in /proc/mounts or /etc/fstab.
SafeFormatAndMount probes a device to see if it is formatted.