pub fn ram_disk(size: u64, read_only: bool) -> Result<Disk>
Expand description
Create a RAM disk of size
bytes.
This is a convenience function for creating a layered disk with a single RAM layer. It is useful since non-layered RAM disks are used all over the place, especially in tests.