]> sourceware.org Git - lvm2.git/commitdiff
lvconvert: disable conversion of RAID LV under snapshot
authorHeinz Mauelshagen <heinzm@redhat.com>
Mon, 19 Jun 2017 19:08:52 +0000 (21:08 +0200)
committerHeinz Mauelshagen <heinzm@redhat.com>
Mon, 19 Jun 2017 19:08:52 +0000 (21:08 +0200)
Disable until we have a proper fix for reshape space allocation,
switching it to begin/end of rimages and activation.

Related: rhbz1439399

lib/metadata/raid_manip.c

index 6abf48256efc0943434c4c757c7fb20559fe48b3..0a08ca94b2688707ccfb6992c7a221287ff7fca5 100644 (file)
@@ -6312,6 +6312,12 @@ int lv_raid_convert(struct logical_volume *lv,
                                         new_stripes, new_stripe_size_supplied))
                return _log_possible_conversion_types(lv, new_segtype);
 
+       /* BZ1439399 */
+       if (lv_is_origin(lv)) {
+               log_error("Can't convert %s under snapshot.", display_lvname(lv));
+               return 0;
+       }
+
        /*
         * reshape of capable raid type requested
         */
This page took 0.03883 seconds and 5 git commands to generate.