mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-10 05:18:36 +03:00
Fix check for snapshot module when activating snapshot.
This commit is contained in:
parent
3aada6dd1d
commit
8ab6d72519
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.15 -
|
Version 2.02.15 -
|
||||||
====================================
|
====================================
|
||||||
|
Fix check for snapshot module when activating snapshot.
|
||||||
Fix pvremove error path for case when PV is in use.
|
Fix pvremove error path for case when PV is in use.
|
||||||
Warn if certain duplicate config file entries are seen.
|
Warn if certain duplicate config file entries are seen.
|
||||||
Enhance lvm_dump.sh for sysreport integration and add man page.
|
Enhance lvm_dump.sh for sysreport integration and add man page.
|
||||||
|
@ -782,12 +782,19 @@ static int _add_segment_to_dtree(struct dev_manager *dm,
|
|||||||
{
|
{
|
||||||
uint32_t s;
|
uint32_t s;
|
||||||
struct list *snh;
|
struct list *snh;
|
||||||
|
struct lv_segment *seg_present;
|
||||||
|
|
||||||
/* Ensure required device-mapper targets are loaded */
|
/* Ensure required device-mapper targets are loaded */
|
||||||
if (seg->segtype->ops->target_present &&
|
seg_present = find_cow(seg->lv) ? : seg;
|
||||||
!seg->segtype->ops->target_present(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 "
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user