1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix metadata corruption writing lvm1-formatted metadata with snapshots.

This commit is contained in:
Alasdair Kergon 2008-04-22 11:47:22 +00:00
parent 14004cf20c
commit a93ae114b8
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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;