mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
A more thorough PV equality test (that also copes better with MISSING_PVs) in
_is_mirror_image_removable.
This commit is contained in:
parent
eeadae1b6a
commit
e1ea382999
@ -440,7 +440,12 @@ static int _is_mirror_image_removable(struct logical_volume *mimage_lv,
|
|||||||
|
|
||||||
pv_found = 0;
|
pv_found = 0;
|
||||||
dm_list_iterate_items(pvl, removable_pvs) {
|
dm_list_iterate_items(pvl, removable_pvs) {
|
||||||
if (pv->dev->dev == pvl->pv->dev->dev) {
|
if (id_equal(&pv->id, &pvl->pv->id)) {
|
||||||
|
pv_found = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (pvl->pv->dev && pv->dev &&
|
||||||
|
pv->dev->dev == pvl->pv->dev->dev) {
|
||||||
pv_found = 1;
|
pv_found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user