master - raid: drop invalid modication of active parameter
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=38e457c4788d0d2e51bf46edbd82b4683d33ac8f Commit: 38e457c4788d0d2e51bf46edbd82b4683d33ac8f Parent: 8a21dcebac02884615b80fbe9d276991a50dc66b Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Feb 11 13:34:22 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Feb 11 18:48:38 2014 +0100
raid: drop invalid modication of active parameter
lv_active_change will enforce proper activation. Modification of activation was wrong and lead to misuse of autoactivation. Fix allows to use proper local exclusive activation, while the removed code turned this into just exclusive activation (losing required local property).
--- WHATS_NEW | 1 + lib/metadata/lv_manip.c | 8 -------- 2 files changed, 1 insertions(+), 8 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.106 - ==================================== + Use local exclusive activation for creation of raid in cluster. Use correctly signed 64b constant when selecting raid volumes. Add systemd native service for clvmd, cmirrord and clustered LV activation. Remove ExecReload from lvmetad systemd unit: lvmetad -R undefined. (2.02.98)
lib/metadata/lv_manip.c +0 -8
@@ -6153,14 +6153,6 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, }else if (seg_is_raid (lp)) {first_seg (lv)->min_recovery_rate = lp->min_recovery_rate;first_seg (lv)->max_recovery_rate = lp->max_recovery_rate; -if (vg_is_clustered (lv->vg) && -is_change_activating (lp->activate) && - (lp->activate !=CHANGE_AE )) { -log_debug_activation ("Creating RAID logical volume in a" -" cluster: setting activation" -" mode to EX" ); - lp->activate =CHANGE_AE ; - } }if (lp->cache) {