mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Add RAID metadata devices to considered devices in _add_lv_to_dtree.
_add_lv_to_dtree must also add RAID metadata devices.
This commit is contained in:
parent
66d9675559
commit
ff58e019d8
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.87 -
|
Version 2.02.87 -
|
||||||
===============================
|
===============================
|
||||||
|
Add RAID metadata devices to considered devices in _add_lv_to_dtree.
|
||||||
Fix renaming of RAID logical volumes.
|
Fix renaming of RAID logical volumes.
|
||||||
Replace free_vg with release_vg and move it to vg.c.
|
Replace free_vg with release_vg and move it to vg.c.
|
||||||
Remove INCONSISTENT_VG flag from the code.
|
Remove INCONSISTENT_VG flag from the code.
|
||||||
|
@ -1060,9 +1060,12 @@ static int _add_partial_replicator_to_dtree(struct dev_manager *dm,
|
|||||||
/*
|
/*
|
||||||
* Add LV and any known dependencies
|
* Add LV and any known dependencies
|
||||||
*/
|
*/
|
||||||
static int _add_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree, struct logical_volume *lv, int origin_only)
|
static int _add_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
|
||||||
|
struct logical_volume *lv, int origin_only)
|
||||||
{
|
{
|
||||||
|
uint32_t s;
|
||||||
struct seg_list *sl;
|
struct seg_list *sl;
|
||||||
|
struct lv_segment *seg = first_seg(lv);
|
||||||
|
|
||||||
if (!origin_only && !_add_dev_to_dtree(dm, dtree, lv, NULL))
|
if (!origin_only && !_add_dev_to_dtree(dm, dtree, lv, NULL))
|
||||||
return_0;
|
return_0;
|
||||||
@ -1074,8 +1077,14 @@ static int _add_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree, struc
|
|||||||
if (!origin_only && !_add_dev_to_dtree(dm, dtree, lv, "cow"))
|
if (!origin_only && !_add_dev_to_dtree(dm, dtree, lv, "cow"))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
if ((lv->status & MIRRORED) && first_seg(lv)->log_lv &&
|
if ((lv->status & MIRRORED) && seg->log_lv &&
|
||||||
!_add_dev_to_dtree(dm, dtree, first_seg(lv)->log_lv, NULL))
|
!_add_dev_to_dtree(dm, dtree, seg->log_lv, NULL))
|
||||||
|
return_0;
|
||||||
|
|
||||||
|
if (lv->status & RAID)
|
||||||
|
for (s = 0; s < seg->area_count; s++)
|
||||||
|
if (!_add_lv_to_dtree(dm, dtree,
|
||||||
|
seg_metalv(seg, s), origin_only))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
/* Add any LVs referencing a PVMOVE LV unless told not to. */
|
/* Add any LVs referencing a PVMOVE LV unless told not to. */
|
||||||
|
Loading…
Reference in New Issue
Block a user