1
0
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:
Zdenek Kabelac 2011-09-16 11:59:22 +00:00
parent 94147f3f29
commit 4a0c6df8df

View File

@ -3028,6 +3028,8 @@ int unlink_lv_from_vg(struct logical_volume *lv)
dm_list_del(&lvl->list);
lv->status = 0; /* Reset */
return 1;
}