From: Heinz Mauelshagen Date: Mon, 19 Jun 2017 19:08:52 +0000 (+0200) Subject: lvconvert: disable conversion of RAID LV under snapshot X-Git-Tag: v2_02_172~76 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=f342e803ba3c32890a2b08736fa94bdd541d5e9c;p=lvm2.git lvconvert: disable conversion of RAID LV under snapshot Disable until we have a proper fix for reshape space allocation, switching it to begin/end of rimages and activation. Related: rhbz1439399 --- diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index 6abf48256..0a08ca94b 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -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 */