1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

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
This commit is contained in:
Heinz Mauelshagen 2017-06-19 21:08:52 +02:00
parent fb46175ce7
commit f342e803ba

View 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
*/