[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
|
|
@ -7,12 +7,13 @@
|
|||
|
||||
class InodeTable {
|
||||
public:
|
||||
InodeTable(Ext2BlockReader& driver, BlockGroupDescriptor* bgdt);
|
||||
InodeTable(const glcr::SharedPtr<Ext2BlockReader>& driver,
|
||||
BlockGroupDescriptor* bgdt);
|
||||
|
||||
glcr::ErrorOr<Inode*> GetInode(uint64_t inode_num);
|
||||
glcr::ErrorOr<Inode*> GetInode(uint32_t inode_num);
|
||||
|
||||
private:
|
||||
Ext2BlockReader& ext2_reader_;
|
||||
glcr::SharedPtr<Ext2BlockReader> ext2_reader_;
|
||||
BlockGroupDescriptor* bgdt_;
|
||||
|
||||
glcr::Vector<MappedMemoryRegion> inode_tables_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue