Module access_control

Module access_control 

Source
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§

BlockPointsTo
A wrapper around a metadata block that resides at a specific logical block address (LBA).
BlockPointsToReadGuard
A read-only guard that provides typed access to a metadata block.
BlockPointsToWriteGuard
A mutable guard for modifying metadata loaded from a block on disk, paired with a transaction context for journaling or rollback.
TrackedInode
A reference-counted, thread-safe wrapper around an in-memory Inode, enabling synchronized read and transactional write access.
TrackedInodeReadGuard
A guard that provides read-only access to the in-memory Inode structure.
TrackedInodeWriteGuard
A guard that provides mutable access to the in-memory within a transactional context.

Traits§

MetaData
Trait for file system metadata types that can be loaded from disk.