mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Re-enable partial activation of non-thin LVs until it can be fixed. (2.02.90)
- The test should be checking the LV as a whole, not just individual segments.
This commit is contained in:
parent
12a15f939c
commit
56d49cbf13
@ -1,5 +1,6 @@
|
||||
Version 2.02.96 -
|
||||
================================
|
||||
Re-enable partial activation of non-thin LVs until it can be fixed. (2.02.90)
|
||||
Fix alloc cling to cling to PVs already found with contiguous policy.
|
||||
Fix cling policy not to behave like normal policy if no previous LV seg.
|
||||
Fix allocation loop not to use later policies when --alloc cling without tags.
|
||||
|
@ -1581,22 +1581,6 @@ int add_areas_line(struct dev_manager *dm, struct lv_segment *seg,
|
||||
seg->lv->vg->name, seg->lv->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Mirrors activate LVs replaced with error targets and
|
||||
* RAID can handle non-accessible sub-LVs.
|
||||
*
|
||||
* TODO: Can we eventually skip to activate such LVs ?
|
||||
*/
|
||||
if (!num_existing_areas &&
|
||||
!strstr(seg->lv->name, "_rmeta_") &&
|
||||
!strstr(seg->lv->name, "_rimage_") &&
|
||||
!strstr(seg->lv->name, "_mimage_") &&
|
||||
!((name = strstr(seg->lv->name, "_mlog")) && !name[5])) {
|
||||
log_error("Cannot activate %s/%s: all segments missing.",
|
||||
seg->lv->vg->name, seg->lv->name);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user