mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-28 11:55:55 +03:00
Reset LV status when unlinking LV from VG
When LV is unlinked, we want to catch problem in vg_validate, that LV has changed. i.e. catch LV has been removed and is no long thin_pool while still being referenced by some thin volume.
This commit is contained in:
parent
94147f3f29
commit
4a0c6df8df
@ -3028,6 +3028,8 @@ int unlink_lv_from_vg(struct logical_volume *lv)
|
|||||||
|
|
||||||
dm_list_del(&lvl->list);
|
dm_list_del(&lvl->list);
|
||||||
|
|
||||||
|
lv->status = 0; /* Reset */
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user