morpheus_core::iso

Module iso9660_bridge

Source
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ยง

Constantsยง