Expand description
Block I/O Adapter for Chunked ISO Storage
This module provides a BlockIo implementation that presents chunked
ISO storage as a single contiguous block device. This allows the iso9660
crate to read from multi-partition ISOs transparently.
§Usage
ⓘ
use morpheus_core::iso::{ChunkReader, IsoReadContext};
use morpheus_core::iso::adapter::ChunkedBlockIo;
// Create adapter from read context
let ctx = storage_manager.get_read_context(iso_index)?;
let mut adapter = ChunkedBlockIo::new(ctx, |lba, buf| {
// Read from actual disk
disk_block_io.read_blocks(Lba(lba), buf)
});
// Now use with iso9660
let volume = iso9660::mount(&mut adapter, 0)?;
let file = iso9660::find_file(&mut adapter, &volume, "/boot/vmlinuz")?;Structs§
- Block I/O adapter for chunked ISO storage
- Simpler read interface for when you just need byte-level access
Constants§
- Sector size (standard)
Traits§
- Trait for block I/O operations (matches gpt_disk_io::BlockIo pattern)