diff --git a/WHATS_NEW b/WHATS_NEW index e9c702a20..212b0c834 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.36 - ================================= + Fix metadata corruption writing lvm1-formatted metadata with snapshots. Add --prefixes to reporting tools for field name prefix output format. Fix lvconvert -m0 allocatable space check. diff --git a/lib/format1/import-export.c b/lib/format1/import-export.c index 04bcc0287..2038755d6 100644 --- a/lib/format1/import-export.c +++ b/lib/format1/import-export.c @@ -284,7 +284,7 @@ int export_vg(struct vg_disk *vgd, struct volume_group *vg) vgd->vg_status |= VG_EXTENDABLE; vgd->lv_max = vg->max_lv; - vgd->lv_cur = vg->lv_count; + vgd->lv_cur = vg->lv_count + vg->snapshot_count; vgd->pv_max = vg->max_pv; vgd->pv_cur = vg->pv_count;