1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-23 10:50:34 +03:00

cope with stacked LVs as well as PVs when deciding which bits of mirrors to remove

This commit is contained in:
Alasdair Kergon 2008-01-16 19:38:39 +00:00
parent f1ccdf25b1
commit 1cb07e9cfd

View File

@ -347,9 +347,12 @@ static int _is_mirror_image_removable(struct logical_volume *mimage_lv,
list_iterate_items(seg, &mimage_lv->segments) {
for (s = 0; s < seg->area_count; s++) {
if (seg_type(seg, s) != AREA_PV)
/* FIXME Recurse for AREA_LV */
continue;
if (seg_type(seg, s) != AREA_PV) {
/* FIXME Recurse for AREA_LV? */
/* Structure of seg_lv is unknown.
* Not removing this LV for safety. */
return 0;
}
pv = seg_pv(seg, s);