Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CouldNotOpenFile ¶
func IsFileSystemSupported ¶
IsFileSystemSupported checks if given fs is supported by the running kernel
func SearchMountpoint ¶
SearchMountpoint returns the last mountpoint for a given filesystem type containing a searchable string.
func UnmountedDirNotEmpty ¶
Types ¶
type MountOnce ¶
type MountOnce struct {
// contains filtered or unexported fields
}
MountOnce will make sure a given source and filesystem type are mounted just once: it will check if given source and fs type are already mounted and, if not, it will mount it (in a temporary directory) and manage it (umounting at its destruction). If already mounted, the filesystem is left untouched at object's destruction.
func NewMountOnce ¶
func (*MountOnce) GetMountpoint ¶
Click to show internal directories.
Click to hide internal directories.