rclone: github.com/ncw/rclone/cmd/mountlib Index | Files | Directories

package mountlib

import "github.com/ncw/rclone/cmd/mountlib"


Package Files

daemon_unix.go mount.go rc.go


const (
    MaxLeafSize = 1024 // don't pass file names longer than this

Global constants


var (
    DebugFUSE                        = false
    AllowNonEmpty                    = false
    AllowRoot                        = false
    AllowOther                       = false
    DefaultPermissions               = false
    WritebackCache                   = false
    Daemon                           = false
    MaxReadAhead       fs.SizeSuffix = 128 * 1024
    ExtraOptions       []string
    ExtraFlags         []string
    AttrTimeout        = 1 * time.Second // how long the kernel caches attribute for
    VolumeName         string
    NoAppleDouble      = true        // use noappledouble by default
    NoAppleXattr       = false       // do not use noapplexattr by default
    DaemonTimeout      time.Duration // OSXFUSE only
    AsyncRead          = true        // do async reads by default

Options set by command line flags

func AddRc Uses

func AddRc(mountUtilName string, mountFunction MountFn)

AddRc adds mount and unmount functionality to rc

func ClipBlocks Uses

func ClipBlocks(b *uint64)

ClipBlocks clips the blocks pointed to the OS max

func NewMountCommand Uses

func NewMountCommand(commandName string, hidden bool, Mount func(f fs.Fs, mountpoint string) error) *cobra.Command

NewMountCommand makes a mount command with the given name and Mount function

type MountFn Uses

type MountFn func(f fs.Fs, mountpoint string) (*vfs.VFS, <-chan error, func() error, error)

MountFn is called to mount the file system

type UnmountFn Uses

type UnmountFn func() error

UnmountFn is called to unmount the file system



Package mountlib imports 19 packages (graph) and is imported by 8 packages. Updated 2020-06-04. Refresh now. Tools for package owners.