mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix vgchange to not activate mirror leg and log volumes directly.
This commit is contained in:
parent
e0a728aada
commit
c8c24ccd23
@ -1,6 +1,8 @@
|
||||
Version 2.02.39 -
|
||||
================================
|
||||
|
||||
Fix vgchange to not activate mirror leg and log volumes directly.
|
||||
Fix test directory clean up in make distclean.
|
||||
|
||||
Version 2.02.38 - 11th June 2008
|
||||
================================
|
||||
Fix tracking of validity of PVs with no mdas in lvmcache.
|
||||
|
@ -66,10 +66,14 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd,
|
||||
if ((lv->status & SNAPSHOT) || lv_is_cow(lv))
|
||||
continue;
|
||||
|
||||
/* Can't deactive a pvmove or log LV */
|
||||
/* Only request activation of mirror LV */
|
||||
if ((lv->status & MIRROR_IMAGE) || (lv->status & MIRROR_LOG))
|
||||
continue;
|
||||
|
||||
/* Can't deactivate a pvmove LV */
|
||||
/* FIXME There needs to be a controlled way of doing this */
|
||||
if (((activate == CHANGE_AN) || (activate == CHANGE_ALN)) &&
|
||||
((lv->status & PVMOVE) || (lv->status & MIRROR_LOG)))
|
||||
((lv->status & PVMOVE) ))
|
||||
continue;
|
||||
|
||||
if (activate == CHANGE_AN) {
|
||||
|
Loading…
Reference in New Issue
Block a user