BTRFS: Added retrieve Volume from BTree

This commit is contained in:
hyche 2017-07-04 23:51:02 +07:00
parent 4ba7b70ff3
commit a4a1be758a
2 changed files with 12 additions and 8 deletions

View File

@ -56,6 +56,8 @@ public:
status_t FindPrevious(btrfs_key& key, void** value,
size_t* size = NULL);
Volume* SystemVolume() const { return fVolume; }
status_t SetRoot(off_t logical, fsblock_t* block);
fsblock_t RootBlock() const { return fRootBlock; }
off_t LogicalRoot() const { return fLogicalRoot; }

View File

@ -38,11 +38,13 @@ public:
{ return fFSVolume ? fFSVolume->id : -1; }
fs_volume* FSVolume() const { return fFSVolume; }
const char* Name() const;
BTree* FSTree() const { return fFSTree; }
BTree* RootTree() const { return fRootTree; }
BTree* FSTree() const { return fFSTree; }
BTree* ExtentTree() const { return fExtentTree; }
BTree* RootTree() const { return fRootTree; }
uint32 SectorSize() const { return fSectorSize; }
uint32 BlockSize() const { return fBlockSize; }
Chunk* SystemChunk() const { return fChunk; }
btrfs_super_block& SuperBlock() { return fSuperBlock; }
@ -71,12 +73,12 @@ private:
Inode* fRootNode;
Chunk* fChunk;
BTree* fChunkTree;
BTree* fRootTree;
BTree* fDevTree;
BTree* fExtentTree;
BTree* fFSTree;
BTree* fChecksumTree;
BTree* fChunkTree;
BTree* fRootTree;
BTree* fDevTree;
BTree* fExtentTree;
BTree* fFSTree;
BTree* fChecksumTree;
};