Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 593922
Collapse All | Expand All

(-)thin-provisioning-tools-0.6.1.orig/thin-provisioning/restore_emitter.cc (-1 / +1 lines)
Lines 142-148 Link Here
142
		bool device_exists(thin_dev_t dev) const {
142
		bool device_exists(thin_dev_t dev) const {
143
			uint64_t key[1] = {dev};
143
			uint64_t key[1] = {dev};
144
			device_tree::maybe_value v = md_->details_->lookup(key);
144
			device_tree::maybe_value v = md_->details_->lookup(key);
145
			return v;
145
			return v.is_initialized();
146
		}
146
		}
147
147
148
		metadata::ptr md_;
148
		metadata::ptr md_;
(-)thin-provisioning-tools-0.6.1.orig/thin-provisioning/thin_pool.cc (-1 / +1 lines)
Lines 232-238 Link Here
232
thin_pool::device_exists(thin_dev_t dev) const
232
thin_pool::device_exists(thin_dev_t dev) const
233
{
233
{
234
	uint64_t key[1] = {dev};
234
	uint64_t key[1] = {dev};
235
	return md_->details_->lookup(key);
235
	return md_->details_->lookup(key).is_initialized();
236
}
236
}
237
237
238
//----------------------------------------------------------------
238
//----------------------------------------------------------------

Return to bug 593922