[thin_pool] Add close_thin()
This commit is contained in:
parent
89409927b4
commit
e33c60c7e2
@ -279,6 +279,12 @@ thin_pool::open_thin(thin_dev_t dev)
|
|||||||
return open_device(dev);
|
return open_device(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
thin_pool::close_thin(thin::ptr td)
|
||||||
|
{
|
||||||
|
close_device(td);
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
thin_pool::device_exists(thin_dev_t dev) const
|
thin_pool::device_exists(thin_dev_t dev) const
|
||||||
{
|
{
|
||||||
|
@ -94,6 +94,7 @@ namespace thin_provisioning {
|
|||||||
uint32_t get_time() const;
|
uint32_t get_time() const;
|
||||||
|
|
||||||
thin::ptr open_thin(thin_dev_t);
|
thin::ptr open_thin(thin_dev_t);
|
||||||
|
void close_thin(thin::ptr td);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class thin;
|
friend class thin;
|
||||||
|
Loading…
Reference in New Issue
Block a user