Expand description
Metadata access and synchronization primitives for the filesystem.
This module defines core abstractions for accessing and modifying filesystem metadata such as inodes and other block-based structures. These types ensure safe, concurrent access to on-disk metadata and provide mechanisms for enforcing transactional updates with journaling support.
It forms the backbone of safe, transactional filesystem operations.
See disk_layout module for its usage.
Structs§
- Block
Points To - A wrapper around a metadata block that resides at a specific logical block address (LBA).
- Block
Points ToRead Guard - A read-only guard that provides typed access to a metadata block.
- Block
Points ToWrite Guard - A mutable guard for modifying metadata loaded from a block on disk, paired with a transaction context for journaling or rollback.
- Tracked
Inode - A reference-counted, thread-safe wrapper around an in-memory
Inode, enabling synchronized read and transactional write access. - Tracked
Inode Read Guard - A guard that provides read-only access to the in-memory
Inodestructure. - Tracked
Inode Write Guard - A guard that provides mutable access to the in-memory within a transactional context.
Traits§
- Meta
Data - Trait for file system metadata types that can be loaded from disk.