pub(crate) fn export_config() -> Result<(), std::io::Error> {
        let cfg = Config::get().refresh();
        match cfg.source.as_ref() {
            Some(target) => cfg.write_pools(&target),
            // no config file to export to
            None => Ok(()),
        }
    }
/// exports the current configuration to the mayastor config file
exports the current configuration to the mayastor config file
exports the current configuration to the mayastor config file
pub(crate) fn export_config() -> Result<(), std::io::Error> {
        let cfg = Config::get().refresh();
        match cfg.source.as_ref() {
            Some(target) => cfg.write_pools(&target),
            // no config file to export to
            None => Ok(()),
        }
    }
pub ( crate ) fn export_config ( ) -> Result < ( ) , std :: io :: Error > { let cfg = Config :: get ( ) . refresh ( ) ; match cfg . source . as_ref ( ) { Some ( target ) => cfg . write_pools ( & target ) , // no config file to export to None => Ok ( ( ) ) , } }
exports the current configuration to the mayastor config file
exports the current configuration to the mayastor config file