Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var MaxWrite uint32 = 128 * 1024
MaxWrite size supported. Linux 4.2.0 caps this value at 128kB.
Functions ¶
Types ¶
type MountOption ¶
type MountOption func(*mountConfig)
MountOption customizes the filesystem mount.
func AllowDev ¶
func AllowDev() MountOption
AllowDev enables interpreting character or block special devices on the filesystem.
func AllowNonEmptyMount ¶
func AllowNonEmptyMount() MountOption
AllowNonEmptyMount allows mounting on top of a non-empty directory.
func AllowOther ¶
func AllowOther() MountOption
AllowOther allows other users to access the filesystem.
func DefaultPermissions ¶
func DefaultPermissions() MountOption
DefaultPermissions requests for the kernel to enforce access control based on the file mode on files. Without this option, the driver itself must implement permission checking.
func FSName ¶
func FSName(name string) MountOption
FilesystemName sets the fsname that is visible in the list of mounted filesystems.
func Subtype ¶
func Subtype(subtype string) MountOption
Subtype sets the subtype of the mount. Setting a subtype will have the full type appear as `fine.<subtype>`. The main type cannot be changed.