cuse

package
v0.0.0-...-d105510 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferToBytes

func BufferToBytes(buf Buffer) []byte

func MountDevice

func MountDevice(
	device Device,

	major uint,
	minor uint,
	name string,

	fuseArgs []string,
) error

func OffsetToInt64

func OffsetToInt64(off Offset) int64

func ReplyBuf

func ReplyBuf(req Request, buf []byte) error

func ReplyError

func ReplyError(req Request, err int) error

func ReplyOpen

func ReplyOpen(req Request, fi FileInfo) error

func ReplyPoll

func ReplyPoll(req Request, revents int) error

func ReplyWrite

func ReplyWrite(req Request, n int) error

func SizeToUint64

func SizeToUint64(size Size) uint64

Types

type Buffer

type Buffer *C.char

type Conn

type Conn *C.fuse_conn_info

type Device

type Device interface {
	Init(userdata Void, conn Conn)
	InitDone(userdata Void)
	Destroy(userdata Void)
	Open(req Request, fi FileInfo)
	Read(req Request, size Size, off Offset, fi FileInfo)
	Write(req Request, buf Buffer, size Size, off Offset, fi FileInfo)
	Flush(req Request, fi FileInfo)
	Release(req Request, fi FileInfo)
	Fsync(req Request, datasync int, fi FileInfo)
	Ioctl(req Request, cmd int, arg Void, fi FileInfo, flags uint, inputBuf Void, inputBufSize Size, outBufSize Size)
	Poll(req Request, fi FileInfo, ph PollHandle)
}

type FileInfo

type FileInfo *C.fuse_file_info

type Offset

type Offset C.off_t

type PollHandle

type PollHandle *C.fuse_pollhandle

type Request

type Request *C.struct_fuse_req

type Size

type Size C.ulong

type Void

type Void *C.void

Jump to

Keyboard shortcuts

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