Some LV types were not properly disallowed to be used as external origin.
Version 2.02.112 -
=====================================
+ Fix detection of unsupported thin external lvconversions.
Fix detection of unsupported cache and thin pool lvconversions.
Fix detection of unsupported lvconversion of cache to snapshot.
Improve code for creation of cache and cache pool volumes.
return 0;
}
- if (lv_is_pool(lv)) {
- log_error("Can't use pool %s as external origin.",
+ if (lv_is_cache_type(lv) ||
+ lv_is_cow(lv) ||
+ lv_is_pool(lv) ||
+ lv_is_thin_pool_data(lv) ||
+ lv_is_thin_pool_metadata(lv)) {
+ log_error("Can't use %s %s as external origin.",
+ first_seg(lv)->segtype->name,
display_lvname(lv));
return 0;
}