async fn create_target(container: &str) -> String {
    let mut h = DOCKER_COMPOSE
        .get()
        .unwrap()
        .grpc_handle(container)
        .await
        .unwrap();
    h.bdev
        .create(BdevUri {
            uri: "malloc:///disk0?size_mb=64".into(),
        })
        .await
        .unwrap();
    // share it over nvmf
    let ep = h
        .bdev
        .share(BdevShareRequest {
            name: "disk0".into(),
            proto: "nvmf".into(),
        })
        .await
        .unwrap();

    DOCKER_COMPOSE.get().unwrap().logs_all().await.unwrap();
    ep.into_inner().uri
}
/// create a malloc bdev and export them over nvmf, returns the URI of the
/// constructed target.
create a malloc bdev and export them over nvmf, returns the URI of the
constructed target.
create a malloc bdev and export them over nvmf returns the URI of the constructed target .
async fn create_target(container: &str) -> String {
    let mut h = DOCKER_COMPOSE
        .get()
        .unwrap()
        .grpc_handle(container)
        .await
        .unwrap();
    h.bdev
        .create(BdevUri {
            uri: "malloc:///disk0?size_mb=64".into(),
        })
        .await
        .unwrap();
    // share it over nvmf
    let ep = h
        .bdev
        .share(BdevShareRequest {
            name: "disk0".into(),
            proto: "nvmf".into(),
        })
        .await
        .unwrap();
    DOCKER_COMPOSE.get().unwrap().logs_all().await.unwrap();
    ep.into_inner().uri
}
async fn create_target ( container : & str ) -> String { let mut h = DOCKER_COMPOSE . get ( ) . unwrap ( ) . grpc_handle ( container ) . await . unwrap ( ) ; h . bdev . create ( BdevUri { uri : " " . into ( ) , } ) . await . unwrap ( ) ; // share it over nvmf let ep = h . bdev . share ( BdevShareRequest { name : " " . into ( ) , proto : " " . into ( ) , } ) . await . unwrap ( ) ; DOCKER_COMPOSE . get ( ) . unwrap ( ) . logs_all ( ) . await . unwrap ( ) ; ep . into_inner ( ) . uri }
create a malloc bdev and export them over nvmf, returns the URI of the
constructed target.
create a malloc bdev and export them over nvmf returns the URI of the constructed target .
container
&str