Skip to main content

Crate fuser

Crate fuser 

Source
Expand description

FUSE userspace library implementation

This is an improved rewrite of the FUSE userspace library (lowlevel interface) to fully take advantage of Rust’s architecture. The only thing we rely on in the real libfuse are mount and unmount calls which are needed to establish a fd to talk to the kernel driver.

Modules§

consts

Structs§

AccessFlags
Flags for access operation.
BackgroundSession
The background session data structure
BackingId
A reference to a previously opened fd intended to be used for passthrough
BsdFileFlags
chflags(2), only used on macOS.
Config
Fuser session configuration, including mount options.
CopyFileRangeFlags
Flags of copy_file_range.
Errno
Represents an error code to be returned to the caller
FileAttr
File attributes
FileHandle
A newtype for file handles
FopenFlags
Flags returned in open response.
Generation
A newtype for generation numbers
INodeNo
A newtype for inode numbers
InitFlags
Init request/reply flags.
IoctlFlags
Ioctl flags.
KernelConfig
Configuration of the fuse kernel module connection
LockOwner
A newtype for lock owners
Notifier
A handle by which the application can send notifications to the server
OpenFlags
Open flags as passed to open operation.
PollEvents
Poll events for use with fuse poll operations.
PollFlags
Poll flags.
PollHandle
A handle to a pending poll() request.
PollNotifier
A handle to a pending poll() request coupled with notifier reference. Can be saved and used to notify the kernel when a poll is ready.
RenameFlags
renameat2 flags.
ReplyAttr
Attribute Reply
ReplyBmap
Bmap Reply
ReplyCreate
Create reply
ReplyData
Data reply
ReplyDirectory
Directory reply
ReplyDirectoryPlus
DirectoryPlus reply
ReplyEmpty
Empty reply
ReplyEntry
Entry reply
ReplyIoctl
Ioctl Reply
ReplyLock
Lock Reply
ReplyLseek
Lseek Reply
ReplyOpen
Open Reply
ReplyPoll
Poll Reply
ReplyStatfs
Statfs Reply
ReplyWrite
Write Reply
ReplyXattr
Xattr reply
Request
FUSE request parameters.
RequestId
Unique ID for a request from the kernel
Session
The session data structure
SessionUnmounter
A thread-safe object that can be used to unmount a Filesystem
Version
A newtype for ABI version
WriteFlags
Write flags.

Enums§

FileType
File types
MountOption
Mount options accepted by the FUSE filesystem type See ‘man mount.fuse’ for details
OpenAccMode
How the file should be opened: read-only, write-only, or read-write.
SessionACL
How requests should be filtered based on the calling UID.
TimeOrNow
Possible input arguments for atime & mtime, which can either be set to a specified time, or to the current time

Traits§

Filesystem
Filesystem trait.

Functions§

mount2
Mount the given filesystem to the given mountpoint. This function will not return until the filesystem is unmounted.
spawn_mount2
Mount the given filesystem to the given mountpoint. This function spawns a background thread to handle filesystem operations while being mounted and therefore returns immediately. The returned handle should be stored to reference the mounted filesystem. If it’s dropped, the filesystem will be unmounted.