1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00
lvm2/lib/metadata
Milan Broz 7f436a0f39 Fix lv_count when manipulating with snapshots and max_lv is set.
Patch fixes these problems:
 - during the snapshot creation process, it needs create 2 LVs,
   one is cow, second becomes snapshot.
   If the code fails in vg_add_snapshot, code lvcreate will not remove
   LV cow volume.

 - if max_lv is set and VG contains snapshot, it can happen that
   during the activation lv_count is temporarily increased over the limit
   and VG metadata are not properly processed
   see https://bugzilla.redhat.com/show_bug.cgi?id=490298

 - vgcfgrestore alows restore with max_lv set to lower valuer that actual
   LV count. This later leads to situation that max_lv is completely ignored.

 - vgck doesn't call vg_validate(). It should at least try:-)

Signed-off-by: Milan Broz <mbroz@redhat.com>
2009-03-16 14:34:57 +00:00
..
lv_alloc.h Calculate mirror log size instead of hardcoding 1 extent size. 2008-12-19 15:24:52 +00:00
lv_manip.c Fix "Calculate mirror log size" commit, the le_count should be always set. 2009-01-06 17:24:21 +00:00
merge.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
metadata-exported.h Try to avoid full rescan if label scan is enough. 2009-02-25 23:29:06 +00:00
metadata.c Fix lv_count when manipulating with snapshots and max_lv is set. 2009-03-16 14:34:57 +00:00
metadata.h Try to avoid full rescan if label scan is enough. 2009-02-25 23:29:06 +00:00
mirror.c Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
pv_alloc.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
pv_manip.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
pv_map.c more fixes 2008-11-04 15:07:45 +00:00
pv_map.h Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
segtype.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
segtype.h Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
snapshot_manip.c Fix lv_count when manipulating with snapshots and max_lv is set. 2009-03-16 14:34:57 +00:00