async fn create_base_bdevs(&self) -> usize {
        let mut failures: usize = 0;
        if let Some(bdevs) = self.base_bdevs.as_ref() {
            for bdev in bdevs {
                info!("creating bdev {}", bdev.uri);
                if let Err(e) = bdev_create(&bdev.uri).await {
                    warn!(
                        "failed to create bdev {} during config load, error={}",
                        bdev.uri,
                        e.verbose(),
                    );
                    failures += 1;
                    continue;
                }

                let my_bdev = Bdev::lookup_by_name(&bdev.uri).unwrap();
                let uuid = my_bdev.uuid_as_string();

                if !self.implicit_share_base {
                    continue;
                }

                if let Ok(ss) = NvmfSubsystem::new_with_uuid(&uuid, &my_bdev) {
                    ss.start()
                        .await
                        .map_err(|_| {
                            warn!("failed to share {}", my_bdev);
                        })
                        .unwrap();
                }
            }
        }
        failures
    }
/// create base bdevs and export these over nvmf if configured
create base bdevs and export these over nvmf if configured
create base bdevs and export these over nvmf if configured
async fn create_base_bdevs(&self) -> usize {
        let mut failures: usize = 0;
        if let Some(bdevs) = self.base_bdevs.as_ref() {
            for bdev in bdevs {
                info!("creating bdev {}", bdev.uri);
                if let Err(e) = bdev_create(&bdev.uri).await {
                    warn!(
                        "failed to create bdev {} during config load, error={}",
                        bdev.uri,
                        e.verbose(),
                    );
                    failures += 1;
                    continue;
                }
                let my_bdev = Bdev::lookup_by_name(&bdev.uri).unwrap();
                let uuid = my_bdev.uuid_as_string();
                if !self.implicit_share_base {
                    continue;
                }
                if let Ok(ss) = NvmfSubsystem::new_with_uuid(&uuid, &my_bdev) {
                    ss.start()
                        .await
                        .map_err(|_| {
                            warn!("failed to share {}", my_bdev);
                        })
                        .unwrap();
                }
            }
        }
        failures
    }
async fn create_base_bdevs ( & self ) -> usize { let mut failures : usize = 0 ; if let Some ( bdevs ) = self . base_bdevs . as_ref ( ) { for bdev in bdevs { info ! ( " " bdev uri ) ; if let Err ( e ) = bdev_create ( & bdev . uri ) . await { warn ! ( " " bdev uri e verbose ( ) ) ; failures += 1 ; continue ; } let my_bdev = Bdev :: lookup_by_name ( & bdev . uri ) . unwrap ( ) ; let uuid = my_bdev . uuid_as_string ( ) ; if ! self . implicit_share_base { continue ; } if let Ok ( ss ) = NvmfSubsystem :: new_with_uuid ( & uuid , & my_bdev ) { ss . start ( ) . await . map_err ( | _ | { warn ! ( " " my_bdev ) ; } ) . unwrap ( ) ; } } } failures }
create base bdevs and export these over nvmf if configured
create base bdevs and export these over nvmf if configured
&self