pub fn lookup_child_from_bdev(bdev_name: &str) -> Option<&mut NexusChild> {
    for nexus in instances() {
        for child in &mut nexus.children {
            if child.bdev.is_some()
                && child.bdev.as_ref().unwrap().name() == bdev_name
            {
                return Some(child);
            }
        }
    }
    None
}
/// Looks up a child based on the underlying bdev name
Looks up a child based on the underlying bdev name
Looks up a child based on the underlying bdev name
pub fn lookup_child_from_bdev(bdev_name: &str) -> Option<&mut NexusChild> {
    for nexus in instances() {
        for child in &mut nexus.children {
            if child.bdev.is_some()
                && child.bdev.as_ref().unwrap().name() == bdev_name
            {
                return Some(child);
            }
        }
    }
    None
}
pub fn lookup_child_from_bdev ( bdev_name : & str ) -> Option < & mut NexusChild > { for nexus in instances ( ) { for child in & mut nexus . children { if child . bdev . is_some ( ) && child . bdev . as_ref ( ) . unwrap ( ) . name ( ) == bdev_name { return Some ( child ) ; } } } None }
Looks up a child based on the underlying bdev name
Looks up a child based on the underlying bdev name
bdev_name
&str