[thin_pool] Add close_thin()
This commit is contained in:
		| @@ -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 | ||||
| { | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user