Skip to contentSkip to conversation

master - lvconvert: avoid setting segment flag

PATCH Heinz Mauelshagen 1 participant 1 message Feb 7, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=69fe8729f3d60b0c9b9a0b2db6b36e38c00b9127
Commit:        69fe8729f3d60b0c9b9a0b2db6b36e38c00b9127
Parent:        46a772fbc4e121f8e9e65d3be022bbace79be1f2
Author:        Heinz Mauelshagen <[email protected]>
AuthorDate:    Tue Feb 7 17:48:17 2017 +0100
Committer:     Heinz Mauelshagen <[email protected]>
CommitterDate: Tue Feb 7 17:48:17 2017 +0100

lvconvert: avoid setting segment flag

Fix:
- don't set SEG_RAID in _convert_mirror_to_raid1() errounously

Related: rhbz1366296

---
 lib/metadata/raid_manip.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
lib/metadata/raid_manip.c +0 -1
index 6efbc5c..f55d3d8 100644
@@ -2196,7 +2196,6 @@ static int _convert_mirror_to_raid1(struct logical_volume *lv,
 	lv->status &= ~MIRROR;
 	lv->status &= ~MIRRORED;
 	lv->status |= RAID;
-	seg->status |= SEG_RAID;
 
 	if (!lv_update_and_reload(lv))
 		return_0;