pub async fn new(init: bool, vmo: &Vmo, fvm_slice_size: u64, ramdisk_block_size: u64) -> Self {
        let test = start_test().await;
        let ramdisk = create_ramdisk(&test, &vmo, ramdisk_block_size);

        let dev_path = test.get_hub_v2_path().join("exec/expose/dev");
        let ramdisk_path = dev_path.join(ramdisk.get_path());
        let ramdisk_path = ramdisk_path.to_str().unwrap();

        if init {
            init_fvm(ramdisk_path, fvm_slice_size);
        }

        let (controller, volume_manager) = start_fvm_driver(ramdisk_path).await;

        Self { test, controller, _ramdisk: ramdisk, volume_manager }
    }
/// Start an isolated FVM driver against the given VMO.
/// If `init` is true, initialize the VMO with FVM layout first.
Start an isolated FVM driver against the given VMO.
If `init` is true, initialize the VMO with FVM layout first.
Start an isolated FVM driver against the given VMO . If ` init ` is true initialize the VMO with FVM layout first .
pub async fn new(init: bool, vmo: &Vmo, fvm_slice_size: u64, ramdisk_block_size: u64) -> Self {
        let test = start_test().await;
        let ramdisk = create_ramdisk(&test, &vmo, ramdisk_block_size);
        let dev_path = test.get_hub_v2_path().join("exec/expose/dev");
        let ramdisk_path = dev_path.join(ramdisk.get_path());
        let ramdisk_path = ramdisk_path.to_str().unwrap();
        if init {
            init_fvm(ramdisk_path, fvm_slice_size);
        }
        let (controller, volume_manager) = start_fvm_driver(ramdisk_path).await;
        Self { test, controller, _ramdisk: ramdisk, volume_manager }
    }
pub async fn new ( init : bool , vmo : & Vmo , fvm_slice_size : u64 , ramdisk_block_size : u64 ) -> Self { let test = start_test ( ) . await ; let ramdisk = create_ramdisk ( & test , & vmo , ramdisk_block_size ) ; let dev_path = test . get_hub_v2_path ( ) . join ( " " ) ; let ramdisk_path = dev_path . join ( ramdisk . get_path ( ) ) ; let ramdisk_path = ramdisk_path . to_str ( ) . unwrap ( ) ; if init { init_fvm ( ramdisk_path , fvm_slice_size ) ; } let ( controller , volume_manager ) = start_fvm_driver ( ramdisk_path ) . await ; Self { test , controller , _ramdisk : ramdisk , volume_manager } }
Start an isolated FVM driver against the given VMO.
Start an isolated FVM driver against the given VMO .
init
bool
vmo
&Vmo
fvm_slice_size
u64
ramdisk_block_size
u64
init
bool
vmo
&Vmo
fvm_slice_size
u64
ramdisk_block_size
u64