mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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
4d45791346
commit
1404dc2fbf
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.96 -
|
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 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 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.
|
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);
|
seg->lv->vg->name, seg->lv->name);
|
||||||
return 0;
|
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;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user