]> sourceware.org Git - lvm2.git/commitdiff
lvconvert: choose direct path to desired raid level
authorHeinz Mauelshagen <heinzm@redhat.com>
Fri, 2 Jun 2017 12:30:57 +0000 (14:30 +0200)
committerHeinz Mauelshagen <heinzm@redhat.com>
Fri, 2 Jun 2017 12:30:57 +0000 (14:30 +0200)
Remove superfluous raid5_n interim LV type from raid4 -> raid10 conversion.

Resolves: rhbz1458006

lib/metadata/raid_manip.c

index 80541fdfbd3354c55940864e53f7a31f54b280b3..8c9069c072f73b4090c19dd7eea72ec333d8da9b 100644 (file)
@@ -5897,7 +5897,7 @@ static int _set_convenient_raid145610_segtype_to(const struct lv_segment *seg_fr
                                return 0;
                        }
 
-                       seg_flag = seg_is_raid5_n(seg_from) ? SEG_RAID0_META : SEG_RAID5_N;
+                       seg_flag = SEG_RAID0_META;
 
                } else if (segtype_is_any_raid6(*segtype)) {
                        if (seg_from->area_count < 4) {
This page took 0.047128 seconds and 5 git commands to generate.