morpheus_network::mainloop::bare_metal

Function write_manifest_to_disk

Source
unsafe fn write_manifest_to_disk(
    blk_driver: &mut VirtioBlkDriver,
    manifest_sector: u64,
    manifest: &IsoManifest,
) -> bool
Expand description

Write an ISO manifest to disk at the specified sector.

The manifest is serialized and written to the manifest sector. This allows the bootloader to discover downloaded ISOs on next boot.

§Arguments

  • blk_driver - The block driver to write with
  • manifest_sector - Sector number to write manifest at
  • manifest - The manifest to write

§Returns

true if write successful, false otherwise