Re-exports§
pub use buffers::*;pub use memory_directory::*;pub use path::*;pub use pidfd::*;
Modules§
- aio
- buffers
- eventfd
- file_
server - fs_args
- fs_
node_ cache - fs_
registry - fsverity
- inotify
- io_
uring - memory_
directory - path
- pidfd
- pipe
- pseudo
- rw_
queue - socket
- syscalls
- timer
Macros§
- fileops_
impl_ dataless - fileops_
impl_ delegate_ read_ and_ seek - fileops_
impl_ directory - Implements
FileOpsmethods in a way that makes sense for directories. You must implementFileOps::seekandFileOps::readdir. - fileops_
impl_ memory - fileops_
impl_ nonseekable - Implements
FileOpsmethods in a way that makes sense for non-seekable files. - fileops_
impl_ noop_ sync - fileops_
impl_ seekable - Implements
FileOps::seekin a way that makes sense for seekable files. - fileops_
impl_ seekless - Implements
FileOps::seekmethods in a way that makes sense for files that ignore seeking operations and always read/write at offset 0. - fileops_
impl_ unbounded_ seek - fs_
node_ impl_ dir_ readonly - fs_
node_ impl_ not_ dir - Stubs out
FsNodeOpsmethods that only apply to directories. - fs_
node_ impl_ symlink - Implements
FsNodeOpsmethods in a way that makes sense for symlinks. You must implementFsNodeOps::readlink. - fs_
node_ impl_ xattr_ delegate - Implements extended attribute ops for
FsNodeOpsby delegating to another object which implements theXattrStoragetrait or a similar interface. For example:
Structs§
- Active
Namespace Node - A namespace node that keeps the underly mount busy.
- Already
Locked Append Lock Strategy - Anon
- Cache
Config - Configuration for CacheMode::Cached.
- Callback
Symlink Node - A SymlinkNode that uses a callback.
- Default
DirEntry Ops - DirEntry
- An entry in a directory.
- DirEntry
State - Directory
Entry Type - Dirent
Sink32 - Dirent
Sink64 - Downcasted
File - A FileObject with the type of its FileOps known. Dereferencing it returns the FileOps.
- Epoll
Event Handler - Epoll
File Object - EpollFileObject represents the FileObject used to implement epoll_create1/epoll_ctl/epoll_pwait.
- FdFlags
- FdNumber
- FdTable
- An
FdTableis a table of file descriptors. - FdTable
Id - An identifier for an
FdTable. - File
Mapping - File
Object - A session with a file object.
- File
Object Id - File
Object State - File
System - A file system that can be mounted in a namespace.
- File
System Options - File
Write Guard State - Flock
Operation - FsContext
- The file system context associated with a task.
- FsNode
- FsNode
Info - Lookup
Context - The context passed during namespace lookups.
- Memory
Regular File - Memory
Regular Node - Memory
Xattr Storage - Mount
- An instance of a filesystem mounted in a namespace.
- Mount
Info - Public representation of the mount options.
- Mount
Namespace File - Mount
State - Mounts
- Tracks all mounts, keyed by mount point.
- Namespace
- A mount namespace.
- Namespace
Node - A node in a mount namespace.
- OPath
Ops - Proc
Mountinfo File - Proc
Mounts File - Proxy
File Ops - Record
Locks - Record
Locks State - Rename
Flags - Special
Node - Statx
Flags - Symlink
Node - A node that represents a symlink to another node.
- User
Fault File - WdNumber
- Watch descriptor returned by inotify_add_watch(2).
Enums§
- Append
Lock Guard - Cache
Mode - Check
Access Reason - Falloc
Mode - File
Async Owner - File
Object Releaser Action - File
Write Guard Mode - FsNode
Link Behavior - FsNode
Releaser Action - Path
With Reachability - Whether the path is reachable from the given root.
- Record
Lock Command - Record
Lock Owner - Resolve
Base - Used to specify base directory in
LookupContextfor lookups originating in theopenat2syscall with eitherRESOLVE_BENEATHorRESOLVE_IN_ROOTflag. - Seek
Target - Symlink
Mode - The
SymlinkModeenum encodes how symlinks are followed during path traversal. - Symlink
Target - Target
FdNumber - The target
FdNumberfor a duplicated file descriptor. - Time
Update Type - Unlink
Kind - Value
OrSize - Returns a value, or the size required to contains it.
- What
ToMount - XattrOp
Constants§
- AES256_
KEY_ SIZE - DEFAULT_
BYTES_ PER_ BLOCK st_blksizeis measured in units of 512 bytes.- DEFAULT_
LRU_ CAPACITY - MAX_
LFS_ FILESIZE - MAX_
SYMLINK_ FOLLOWS - The maximum number of symlink traversals that can be made during path resolution.
Traits§
- Append
Lock Strategy - Close
Free Safe - Marker trait for implementation of FileOps that do not need to implement
closeand can then pass a wrapper object as theFileOpsimplementation. - DirEntry
Ops - Dirent
Sink - FileOps
- Corresponds to struct file_operations in Linux, plus any filesystem-specific data.
- File
System Ops - The filesystem-implementation-specific data for FileSystem.
- FsNode
Ops - Xattr
Storage - Trait that objects can implement if they need to handle extended attribute storage. Allows
delegating extended attribute operations in
FsNodeOpsto another object.
Functions§
- anon_fs
- canonicalize_
ioctl_ request - checked_
add_ offset_ and_ length - default_
eof_ offset - default_
fcntl - default_
ioctl - default_
seek - Implement the seek method for a file. The computation from the end of the file must be provided through a callback.
- new_
memfd - unbounded_
seek - Implement the seek method for a file without an upper bound on the resulting offset.
Type Aliases§
- DirEntry
Handle - DirEntry
Read Guard - DirEntry
State MutRef - DirEntry
State Ref - DirEntry
Write Guard - Epoll
Key - EpollKey acts as an key to a map of WaitObject. In reality it is a pointer to a FileHandle object.
- File
Handle - File
Handle Key - File
Releaser - File
System Handle - FsNode
Handle - FsNode
Releaser - Mount
Read Guard - Mount
State MutRef - Mount
State Ref - Mount
Write Guard - Weak
File Handle - Weak
FsNode Handle