1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00
lvm2/lib/metadata
Milan Broz 6d1b3b5385 Calculate mirror log size instead of hardcoding 1 extent size.
It fails for 1k PE now.

Patch adds log_region_size into allocation habdle struct
and use it in _alloc_parallel_area() for proper log size calculation
instead of hardcoded 1 extent - which can fail.

Reproducer for incorrect log size calculation:
        DEV=/dev/sd[bcd]

        pvcreate $DEV
        vgcreate -s 1k vg_test $DEV
        lvcreate -m1 -L 12M -n mirr vg_test

https://bugzilla.redhat.com/show_bug.cgi?id=477040

The log size calculation is mostly copied from kernel code.
2008-12-19 15:24:52 +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 Calculate mirror log size instead of hardcoding 1 extent size. 2008-12-19 15:24:52 +00:00
merge.c Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
metadata-exported.h Added displayable_lvs_in_vg and lv_is_displayable functions to deal with 2008-12-04 15:54:26 +00:00
metadata.c Added displayable_lvs_in_vg and lv_is_displayable functions to deal with 2008-12-04 15:54:26 +00:00
metadata.h Calculate mirror log size instead of hardcoding 1 extent size. 2008-12-19 15:24:52 +00:00
mirror.c Calculate mirror log size instead of hardcoding 1 extent size. 2008-12-19 15:24:52 +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 Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
snapshot_manip.c Added displayable_lvs_in_vg and lv_is_displayable functions to deal with 2008-12-04 15:54:26 +00:00