Expand description
ISO9660 Integration
Bridge between chunked ISO storage and the iso9660 crate.
Provides a BlockIo implementation that iso9660 can use directly.
ยงUsage
โ
use morpheus_core::iso::{IsoStorageManager, IsoBlockIoAdapter};
use iso9660::{mount, find_file, find_boot_image};
// Get ISO read context from storage manager
let ctx = storage_manager.get_read_context(iso_index)?;
// Create adapter with disk read function
let mut adapter = IsoBlockIoAdapter::new(ctx, &mut disk_block_io);
// Use with iso9660
let volume = mount(&mut adapter, 0)?;
let boot = find_boot_image(&mut adapter, &volume)?;
let kernel_file = find_file(&mut adapter, &volume, "/boot/vmlinuz")?;Structsยง
- High-level helper to boot from a chunked ISO
- Block I/O adapter that implements gpt_disk_io::BlockIo
Constantsยง
- Ratio of ISO sectors to disk blocks
- DISK_
BLOCK_ ๐SIZE Physical disk block size - ISO_
SECTOR_ ๐SIZE ISO9660 sector size (what iso9660 crate expects)