From f342e803ba3c32890a2b08736fa94bdd541d5e9c Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Mon, 19 Jun 2017 21:08:52 +0200 Subject: [PATCH] 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 --- lib/metadata/raid_manip.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.43.5