fn build_tree_from_fs(
        &mut self,
        ctx: &mut BuildContext,
        bootstrap_ctx: &mut BootstrapContext,
        layer_idx: u16,
    ) -> Result<Tree> {
        let node = Node::new(
            ctx.fs_version,
            ctx.source_path.clone(),
            ctx.source_path.clone(),
            Overlay::UpperAddition,
            ctx.chunk_size,
            ctx.explicit_uidgid,
            true,
        )?;
        let mut tree = Tree::new(node);
        let tree_builder = FilesystemTreeBuilder::new();

        tree.children = timing_tracer!(
            { tree_builder.load_children(ctx, bootstrap_ctx, &mut tree.node, layer_idx) },
            "load_from_directory"
        )?;

        Ok(tree)
    }
/// Build node tree from a filesystem directory
Build node tree from a filesystem directory
Build node tree from a filesystem directory
fn build_tree_from_fs(
        &mut self,
        ctx: &mut BuildContext,
        bootstrap_ctx: &mut BootstrapContext,
        layer_idx: u16,
    ) -> Result<Tree> {
        let node = Node::new(
            ctx.fs_version,
            ctx.source_path.clone(),
            ctx.source_path.clone(),
            Overlay::UpperAddition,
            ctx.chunk_size,
            ctx.explicit_uidgid,
            true,
        )?;
        let mut tree = Tree::new(node);
        let tree_builder = FilesystemTreeBuilder::new();
        tree.children = timing_tracer!(
            { tree_builder.load_children(ctx, bootstrap_ctx, &mut tree.node, layer_idx) },
            "load_from_directory"
        )?;
        Ok(tree)
    }
fn build_tree_from_fs ( & mut self , ctx : & mut BuildContext , bootstrap_ctx : & mut BootstrapContext , layer_idx : u16 , ) -> Result < Tree > { let node = Node :: new ( ctx . fs_version , ctx . source_path . clone ( ) , ctx . source_path . clone ( ) , Overlay :: UpperAddition , ctx . chunk_size , ctx . explicit_uidgid , true , ) ? ; let mut tree = Tree :: new ( node ) ; let tree_builder = FilesystemTreeBuilder :: new ( ) ; tree . children = timing_tracer ! ( { tree_builder load_children ( ctx bootstrap_ctx mut tree node layer_idx ) } " " ) ? ; Ok ( tree ) }
Build node tree from a filesystem directory
Build node tree from a filesystem directory
&mut self
ctx
&mut BuildContext
bootstrap_ctx
&mut BootstrapContext
layer_idx
u16
&mut self
ctx
&mut BuildContext
bootstrap_ctx
&mut BootstrapContext
layer_idx
u16