1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00
lvm2/lib
Milan Broz 17617fe839 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
..
activate Fail add tree node when requested major/minor is used. 2008-12-19 15:23:03 +00:00
cache Suppress 'duplicate PV' message when it's only a cache update not a real 2008-11-28 15:51:40 +00:00
commands Create global is_static() to eliminate from the library init function. 2008-12-18 05:27:17 +00:00
config Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
datastruct more missing bits 2008-11-04 14:57:06 +00:00
device Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
display Added displayable_lvs_in_vg and lv_is_displayable functions to deal with 2008-12-04 15:54:26 +00:00
error Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
filters Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
format1 Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
format_pool more fixes 2008-11-04 15:07:45 +00:00
format_text Remove backup_enable() calls after create_toolcontext() calls. 2008-12-11 03:33:35 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
locking Create global is_static() to eliminate from the library init function. 2008-12-18 05:27:17 +00:00
log more tweaking to get things to compile - dmlib.h for log fns, list.h 2008-11-03 18:59:59 +00:00
metadata Calculate mirror log size instead of hardcoding 1 extent size. 2008-12-19 15:24:52 +00:00
mirror Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
misc Create global is_static() to eliminate from the library init function. 2008-12-18 05:27:17 +00:00
mm fix setpriority int error 2008-05-28 23:12:45 +00:00
report Fix segfault when invalid field given in reporting commands. 2008-12-15 13:30:45 +00:00
snapshot Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
striped Add detection of clustered mirror log capability. 2008-04-07 10:23:47 +00:00
uuid Add generic function to read /dev/urandom, used in uuid calculation. 2008-12-07 04:23:37 +00:00
zero Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
lvm2.h Create global is_static() to eliminate from the library init function. 2008-12-18 05:27:17 +00:00
Makefile.in more tweaking to get things to compile - dmlib.h for log fns, list.h 2008-11-03 18:59:59 +00:00