/// Build node tree from a bootstrap file
Build node tree from a bootstrap file
Build node tree from a bootstrap file
pub fn from_bootstrap(rs: &RafsSuper) -> Result<Self> {
        let tree_builder = MetadataTreeBuilder::new(&rs);
        let root_inode = rs.get_inode(RAFS_ROOT_INODE, true)?;
        let root_node = tree_builder.parse_node(root_inode, PathBuf::from_str("/").unwrap())?;
        let mut tree = Tree::new(root_node);
        tree.children = tree_builder.load_children(RAFS_ROOT_INODE, None)?;
        Ok(tree)
    }
pub fn from_bootstrap ( rs : & RafsSuper ) -> Result < Self > { let tree_builder = MetadataTreeBuilder :: new ( & rs ) ; let root_inode = rs . get_inode ( RAFS_ROOT_INODE , true ) ? ; let root_node = tree_builder . parse_node ( root_inode , PathBuf :: from_str ( " " ) . unwrap ( ) ) ? ; let mut tree = Tree :: new ( root_node ) ; tree . children = tree_builder . load_children ( RAFS_ROOT_INODE , None ) ? ; Ok ( tree ) }
Build node tree from a bootstrap file
Build node tree from a bootstrap file
rs
&RafsSuper