Skip to main content

Module file

Module file 

Source

Structs§

DecodedBlobMetadata
Metadata decoded from on-disk storage describing a blob’s uncompressed size, compression info, and Merkle leaves. Compression info will be None if blob is uncompressed.
File
A mapped file containing extents and an optional transformation (compression or encryption).
Files
A thread-safe registry of active File instances indexed by their Zircon pager port key.
NoopDeliveryHandler
A no-op DeliveryHandler for sessions that do not run a kernel pager or verify blobs (such as intermediate partition mapping sessions).
PagerThread
An RAII guard for the background pager thread spawned by Files::spawn_pager_thread.

Enums§

Transform
Transformation applied to stored data before it can be presented to the reader.

Constants§

READ_AHEAD_SIZE
Default readahead size used for streaming reads and decompression (128 KiB).

Traits§

DeliveryHandler
Trait for handling deliveries (page request buffers and blob registrations) from Files.

Functions§

process_mapping_command
Processes a raw mapping command (RawMappingCommand), decoding extent descriptors, reading blob metadata from storage, registering Merkle leaves via files, and inserting/removing the file from files.
read_ahead_size_for_chunk_size
Calculates the readahead size for a given chunk size, rounding down suggested_read_ahead_size to a multiple of chunk_size, or returning chunk_size if it is larger than suggested_read_ahead_size.
read_blob_metadata
Reads blob metadata asynchronously from metadata_extents using service. Once the metadata is retrieved, deserialized, and parsed, callback is invoked with DecodedBlobMetadata.