fuse

package
v0.0.0-...-d39c007 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxWrite uint32 = 128 * 1024

MaxWrite size supported. Linux 4.2.0 caps this value at 128kB.

Functions

func Mount

func Mount(l log.Logger, dir string, opts ...MountOption) (fine.Transport, error)

Mount creates a mountpoint at dir and returns the Conn to handle FUSE requests from it.

Not all FUSE commands are supported.

func Unmount

func Unmount(dir string) error

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 AllowSUID

func AllowSUID() MountOption

AllowSUID allows SUID and SGID bits to take effect.

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 ReadOnly

func ReadOnly() MountOption

ReadOnly marks the mount as read-only.

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.

Jump to

Keyboard shortcuts

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