Documentation ¶
Index ¶
- Constants
- Variables
- func AddFlags(flagSet *pflag.FlagSet)
- func AddRc(mountUtilName string, mountFunction MountFn)
- func ClipBlocks(b *uint64)
- func Mount(VFS *vfs.VFS, mountpoint string, mount MountFn, opt *Options) error
- func NewMountCommand(commandName string, hidden bool, mount MountFn) *cobra.Command
- type MountFn
- type MountInfo
- type Options
- type UnmountFn
Constants ¶
View Source
const (
MaxLeafSize = 1024 // don't pass file names longer than this
)
Global constants
Variables ¶
View Source
var DefaultOpt = Options{ MaxReadAhead: 128 * 1024, AttrTimeout: 1 * time.Second, NoAppleDouble: true, NoAppleXattr: false, AsyncRead: true, }
DefaultOpt is the default values for creating the mount
View Source
var (
Opt = DefaultOpt
)
Options set by command line flags
Functions ¶
Types ¶
type MountFn ¶ added in v1.52.0
type MountFn func(VFS *vfs.VFS, mountpoint string, opt *Options) (<-chan error, func() error, error)
MountFn is called to mount the file system
type MountInfo ¶ added in v1.53.0
type MountInfo struct { MountPoint string `json:"MountPoint"` MountedOn time.Time `json:"MountedOn"` Fs string `json:"Fs"` MountOpt *Options VFSOpt *vfscommon.Options // contains filtered or unexported fields }
MountInfo defines the configuration for a mount
type Options ¶ added in v1.53.0
type Options struct { DebugFUSE bool AllowNonEmpty bool AllowRoot bool AllowOther bool DefaultPermissions bool WritebackCache bool Daemon bool MaxReadAhead fs.SizeSuffix ExtraOptions []string ExtraFlags []string AttrTimeout time.Duration // how long the kernel caches attribute for VolumeName string NoAppleDouble bool NoAppleXattr bool DaemonTimeout time.Duration // OSXFUSE only AsyncRead bool }
Options for creating the mount
Click to show internal directories.
Click to hide internal directories.