diff --git a/thin-provisioning/thin_pool.cc b/thin-provisioning/thin_pool.cc index 5bfb487..d9d9684 100644 --- a/thin-provisioning/thin_pool.cc +++ b/thin-provisioning/thin_pool.cc @@ -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 { diff --git a/thin-provisioning/thin_pool.h b/thin-provisioning/thin_pool.h index ce6e18e..4dffc7b 100644 --- a/thin-provisioning/thin_pool.h +++ b/thin-provisioning/thin_pool.h @@ -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;