mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
mirror: look for mirror seg only in mirror LV
Find mirror seg only in MIRROR_IMAGE. (in-release update)
This commit is contained in:
parent
b84797be32
commit
962af71b76
@ -396,11 +396,11 @@ static int _lv_mimage_in_sync(const struct logical_volume *lv)
|
||||
struct lv_segment *seg = first_seg(lv);
|
||||
struct lv_segment *mirror_seg;
|
||||
|
||||
if (seg)
|
||||
mirror_seg = find_mirror_seg(seg);
|
||||
|
||||
if (!(lv->status & MIRROR_IMAGE) || !seg || !mirror_seg)
|
||||
return_0;
|
||||
if (!(lv->status & MIRROR_IMAGE) || !seg ||
|
||||
!(mirror_seg = find_mirror_seg(seg))) {
|
||||
log_error(INTERNAL_ERROR "Cannot find mirror segment.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!lv_mirror_percent(lv->vg->cmd, mirror_seg->lv, 0, &percent,
|
||||
NULL))
|
||||
|
Loading…
Reference in New Issue
Block a user