pub fn import_bdevs(&'static self) {
        assert_eq!(Cores::current(), Cores::first());
        Reactor::block_on(async move {
            // There should not be any duplicate bdevs in the config
            // file. We count any creation failures, but we do not retry.

            // The nexus should be created after the pools as it may be using
            // the pool's lvol
            // The base bdevs need to be created after the nexus as otherwise
            // the nexus create will fail

            let mut errors = self.create_pools().await;

            if Self::import_nexuses() {
                errors += self.create_nexus_bdevs().await;
            }

            errors += self.create_base_bdevs().await;

            if errors != 0 {
                warn!("Not all bdevs({}) were imported successfully", errors);
            }
        });
    }
/// Import bdevs with a specific order
Import bdevs with a specific order
Import bdevs with a specific order
pub fn import_bdevs(&'static self) {
        assert_eq!(Cores::current(), Cores::first());
        Reactor::block_on(async move {
            // There should not be any duplicate bdevs in the config
            // file. We count any creation failures, but we do not retry.
            // The nexus should be created after the pools as it may be using
            // the pool's lvol
            // The base bdevs need to be created after the nexus as otherwise
            // the nexus create will fail
            let mut errors = self.create_pools().await;
            if Self::import_nexuses() {
                errors += self.create_nexus_bdevs().await;
            }
            errors += self.create_base_bdevs().await;
            if errors != 0 {
                warn!("Not all bdevs({}) were imported successfully", errors);
            }
        });
    }
pub fn import_bdevs ( & ' static self ) { assert_eq ! ( Cores current ( ) Cores first ( ) ) ; Reactor :: block_on ( async move { // There should not be any duplicate bdevs in the config // file. We count any creation failures, but we do not retry. // The nexus should be created after the pools as it may be using // the pool's lvol // The base bdevs need to be created after the nexus as otherwise // the nexus create will fail let mut errors = self . create_pools ( ) . await ; if Self :: import_nexuses ( ) { errors += self . create_nexus_bdevs ( ) . await ; } errors += self . create_base_bdevs ( ) . await ; if errors != 0 { warn ! ( " " errors ) ; } } ) ; }
Import bdevs with a specific order
Import bdevs with a specific order
&'static self