Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultFstabFile = "/etc/fstab"
)
Variables ¶
This section is empty.
Functions ¶
func IsBindMountedWithFstab ¶
func IsBindMountedWithFstab(mount BindMount) (alreadyMounted bool, fstabEntryAlreadyAdded bool, err error)
IsBindMountedWithFstab checks if the bind mount is currently mounted and if the fstab entry exists
func RemoveBindMountsWithFstab ¶
RemoveBindMountsWithFstab undoes bind mount setup It unmounts the bind mount and removes the entry from /etc/fstab
func SetupBindMountsWithFstab ¶
SetupBindMountsWithFstab sets up a bind mount for the given target It adds an entry to /etc/fstab and performs the mount
Types ¶
Click to show internal directories.
Click to hide internal directories.