[thin_pool] Encapsulate metadata into the pool class

This commit is contained in:
Ming-Hung Tsai
2020-05-31 01:18:45 +08:00
parent 5810846409
commit 0b058a2850
2 changed files with 17 additions and 3 deletions

View File

@@ -58,7 +58,10 @@ namespace thin_provisioning {
public:
typedef std::shared_ptr<thin_pool> ptr;
thin_pool(metadata::ptr md);
thin_pool(block_manager::ptr bm);
thin_pool(block_manager::ptr bm,
sector_t data_block_size,
block_address nr_data_blocks);
~thin_pool();
void create_thin(thin_dev_t dev);