From 67f9e6b175815d7a91a10ecc3d5098d30dbfed91 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 10 Dec 2016 14:51:00 +0100 Subject: [PATCH] raid: avoid _ at end of name of extracted metadata LV Do not generate @PREFIX@vg/LV1_rmeta_1_extracted_. --- WHATS_NEW | 1 + lib/metadata/raid_manip.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 9e957922d..63cdb8989 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.169 - ===================================== + Avoid adding extra '_' at end of raid extracted images or metadata. Optimize another _rmeta clearing code. Fix deactivation of raid orphan devices for clustered VG. Fix lvconvert raid1 to mirror table reload order. diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index 159bfa203..58e3bcf45 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -1785,7 +1785,7 @@ static int _extract_image_component_error_seg(struct lv_segment *seg, if (!remove_seg_from_segs_using_this_lv(lv, seg)) return_0; - if (!(lv->name = _generate_raid_name(lv, "extracted_", -1))) + if (!(lv->name = _generate_raid_name(lv, "extracted", -1))) return_0; if (set_error_seg && !replace_lv_with_error_segment(lv))