diff --git a/WHATS_NEW b/WHATS_NEW index 659f98613..f748726e6 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,7 +1,7 @@ Version 2.02.51 - ================================ Add --dataalignmentoffset to pvcreate to shift start of aligned data area. - Preserve pe_start in .pv_setup and .pv_write if pe_start was supplied. + Preserve pe_start in .pv_write if pe_start was supplied. Fix _mda_setup() to not check first mda's size before pe_align rounding. Formalize pe_start policy as split between .pv_setup and .pv_write. Document -I option of clvmd in the man page. diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c index 629e3ea90..2d53569e4 100644 --- a/lib/format_text/format-text.c +++ b/lib/format_text/format-text.c @@ -1735,10 +1735,8 @@ static int _text_pv_setup(const struct format_type *fmt, /* FIXME Default from config file? vgextend cmdline flag? */ pv->status |= ALLOCATABLE_PV; } else { - if (pe_start) { + if (pe_start) pv->pe_start = pe_start; - goto preserve_pe_start; - } if (!data_alignment) data_alignment = find_config_tree_int(pv->fmt->cmd, @@ -1760,7 +1758,6 @@ static int _text_pv_setup(const struct format_type *fmt, return 0; } - preserve_pe_start: if (extent_count) pe_end = pe_start + extent_count * extent_size - 1; if (!_mda_setup(fmt, pe_start, pe_end, pvmetadatacopies,