[Victoria Falls] Print only the root directory information.
Move the InodeTable creating to the Init function which (somewhat) requires us to stop taking the Ext2BlockReader as a reference (the reference from the Init function goes out of scope). Make the Ext2BlockReader Init function return a shared ptr by default.
This commit is contained in:
parent
bed685af65
commit
083ed52ddd
7 changed files with 44 additions and 45 deletions
|
|
@ -13,7 +13,8 @@ uint64_t main(uint64_t init_cap) {
|
|||
ASSIGN_OR_RETURN(ScopedDenaliClient denali, yellowstone.GetDenali());
|
||||
ASSIGN_OR_RETURN(Ext2Driver ext2, Ext2Driver::Init(glcr::Move(denali)));
|
||||
|
||||
check(ext2.ProbePartition());
|
||||
ASSIGN_OR_RETURN(Inode * root, ext2.GetInode(2));
|
||||
check(ext2.ProbeDirectory(root));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue