Documentation ¶
Overview ¶
Package fuse implements fusefs.
Index ¶
- Constants
- Variables
- func CreateDevtmpfsFile(ctx context.Context, dev *devtmpfs.Accessor) error
- func Register(vfsObj *vfs.VirtualFilesystem) error
- type DeviceFD
- func (fd *DeviceFD) Epollable() bool
- func (fd *DeviceFD) EventRegister(e *waiter.Entry) error
- func (fd *DeviceFD) EventUnregister(e *waiter.Entry)
- func (fd *DeviceFD) PRead(ctx context.Context, dst usermem.IOSequence, offset int64, ...) (int64, error)
- func (fd *DeviceFD) PWrite(ctx context.Context, src usermem.IOSequence, offset int64, ...) (int64, error)
- func (fd *DeviceFD) Read(ctx context.Context, dst usermem.IOSequence, opts vfs.ReadOptions) (int64, error)
- func (fd *DeviceFD) Readiness(mask waiter.EventMask) waiter.EventMask
- func (fd *DeviceFD) Release(ctx context.Context)
- func (fd *DeviceFD) Seek(ctx context.Context, offset int64, whence int32) (int64, error)
- func (fd *DeviceFD) Write(ctx context.Context, src usermem.IOSequence, opts vfs.WriteOptions) (int64, error)
- type FilesystemType
- type NewFhData
- type Request
- type Response
Constants ¶
const Name = "fuse"
Name is the default filesystem name.
Variables ¶
var ( MaxUserBackgroundRequest uint16 = fuseDefaultMaxBackground MaxUserCongestionThreshold uint16 = fuseDefaultCongestionThreshold )
Adjustable maximums for Connection's cogestion control parameters. Used as the upperbound of the config values. Currently we do not support adjustment to them.
Functions ¶
func CreateDevtmpfsFile ¶
CreateDevtmpfsFile creates a device special file in devtmpfs.
func Register ¶
func Register(vfsObj *vfs.VirtualFilesystem) error
Register registers the FUSE device with vfsObj.
Types ¶
type DeviceFD ¶
type DeviceFD struct { vfs.FileDescriptionDefaultImpl vfs.DentryMetadataFileDescriptionImpl vfs.NoLockFD // contains filtered or unexported fields }
DeviceFD implements vfs.FileDescriptionImpl for /dev/fuse.
+stateify savable
func (*DeviceFD) EventRegister ¶
EventRegister implements waiter.Waitable.EventRegister.
func (*DeviceFD) EventUnregister ¶
EventUnregister implements waiter.Waitable.EventUnregister.
func (*DeviceFD) PRead ¶
func (fd *DeviceFD) PRead(ctx context.Context, dst usermem.IOSequence, offset int64, opts vfs.ReadOptions) (int64, error)
PRead implements vfs.FileDescriptionImpl.PRead.
func (*DeviceFD) PWrite ¶
func (fd *DeviceFD) PWrite(ctx context.Context, src usermem.IOSequence, offset int64, opts vfs.WriteOptions) (int64, error)
PWrite implements vfs.FileDescriptionImpl.PWrite.
func (*DeviceFD) Read ¶
func (fd *DeviceFD) Read(ctx context.Context, dst usermem.IOSequence, opts vfs.ReadOptions) (int64, error)
Read implements vfs.FileDescriptionImpl.Read.
type FilesystemType ¶
type FilesystemType struct{}
FilesystemType implements vfs.FilesystemType.
+stateify savable
func (FilesystemType) GetFilesystem ¶
func (fsType FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, source string, opts vfs.GetFilesystemOptions) (*vfs.Filesystem, *vfs.Dentry, error)
GetFilesystem implements vfs.FilesystemType.GetFilesystem.
func (FilesystemType) Name ¶
func (FilesystemType) Name() string
Name implements vfs.FilesystemType.Name.
func (FilesystemType) Release ¶
func (FilesystemType) Release(ctx context.Context)
Release implements vfs.FilesystemType.Release.
type NewFhData ¶
type NewFhData struct {
// contains filtered or unexported fields
}
NewFhData is returned by newEntry.
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request represents a FUSE operation request that hasn't been sent to the server yet.
+stateify savable
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response represents an actual response from the server, including the response payload.
+stateify savable
func (*Response) UnmarshalPayload ¶
func (r *Response) UnmarshalPayload(m marshal.Marshallable) error
UnmarshalPayload unmarshals the response data into m.