1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix check for snapshot module when activating snapshot.

This commit is contained in:
Alasdair Kergon 2006-11-20 16:45:45 +00:00
parent ba4f5d8080
commit 253751656b
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.15 -
====================================
Fix check for snapshot module when activating snapshot.
Fix pvremove error path for case when PV is in use.
Warn if certain duplicate config file entries are seen.
Enhance lvm_dump.sh for sysreport integration and add man page.

View File

@ -782,12 +782,19 @@ static int _add_segment_to_dtree(struct dev_manager *dm,
{
uint32_t s;
struct list *snh;
struct lv_segment *seg_present;
/* Ensure required device-mapper targets are loaded */
if (seg->segtype->ops->target_present &&
!seg->segtype->ops->target_present(seg)) {
seg_present = find_cow(seg->lv) ? : seg;
log_debug("Checking kernel supports %s segment type for %s%s%s",
seg_present->segtype->name, seg->lv->name,
layer ? "-" : "", layer ? : "");
if (seg_present->segtype->ops->target_present &&
!seg_present->segtype->ops->target_present(seg_present)) {
log_error("Can't expand LV %s: %s target support missing "
"from kernel?", seg->lv->name, seg->segtype->name);
"from kernel?", seg->lv->name, seg_present->segtype->name);
return 0;
}