]> sourceware.org Git - lvm2.git/commitdiff
lvconvert: Disallow raid10 mirror conversions.
authorAlasdair G Kergon <agk@redhat.com>
Tue, 23 Aug 2016 22:40:16 +0000 (23:40 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 23 Aug 2016 22:40:16 +0000 (23:40 +0100)
WHATS_NEW
tools/lvconvert.c

index fdf63e423ec5794e3827ccae76ac0a3e9aa9b3bf..315e7f9dad1e0ae71fac6a6fbef4f787f30c6d72 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.165 - 
 ===================================
+  Disallow segtype and mirror conversions of raid10 volumes.
   Fix dmeventd unmonitoring when segment type (and dso) changes.
   Don't allow lvconvert --repair on raid0 devices or attempt to monitor them.
   No longer adjust incorrect number of raid stripes supplied to lvcreate.
index fefec7cd18a642462ba3cbf70a759b18f72e6cf7..457724ca89eed2f4c161337586d25a45e9b38194 100644 (file)
@@ -1849,6 +1849,11 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l
                                  lvseg_name(seg));
                        return 0;
                }
+               if (seg_is_raid10(seg)) {
+                       log_error("--mirrors/-m cannot be changed with %s.",
+                                 lvseg_name(seg));
+                       return 0;
+               }
        }
 
        if (!_lvconvert_validate_thin(lv, lp))
This page took 0.052322 seconds and 5 git commands to generate.