pub async fn mount_image_as_ramdisk(resource_path: &str) -> RamdiskClient
Expand description

Loads a test resource image into a VMO and bind it as a ramdisk to /dev.

When the returned RamdiskClient is Dropped it will schedule the ramdisk to unbind. Callers must keep a reference to the RamdiskClient while the ramdisk is needed.