[thin_pool] Add close_thin()

This commit is contained in:
Ming-Hung Tsai 2020-06-02 12:43:55 +08:00
parent 89409927b4
commit e33c60c7e2
2 changed files with 7 additions and 0 deletions

View File

@ -279,6 +279,12 @@ thin_pool::open_thin(thin_dev_t dev)
return open_device(dev);
}
void
thin_pool::close_thin(thin::ptr td)
{
close_device(td);
}
bool
thin_pool::device_exists(thin_dev_t dev) const
{

View File

@ -94,6 +94,7 @@ namespace thin_provisioning {
uint32_t get_time() const;
thin::ptr open_thin(thin_dev_t);
void close_thin(thin::ptr td);
private:
friend class thin;