]> sourceware.org Git - lvm2.git/commit - WHATS_NEW
Calculate mirror log size instead of hardcoding 1 extent size.
authorMilan Broz <mbroz@redhat.com>
Fri, 19 Dec 2008 15:24:52 +0000 (15:24 +0000)
committerMilan Broz <mbroz@redhat.com>
Fri, 19 Dec 2008 15:24:52 +0000 (15:24 +0000)
commit6d1b3b53853e69e3c467dbb3dc95fa193f368281
tree2bec42c578d00904ea4a46366f1ea5851613f022
parent0c8bdaf33cb0ac45a1bb0dd9caf601b83ea910b6
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.
WHATS_NEW
lib/metadata/lv_alloc.h
lib/metadata/lv_manip.c
lib/metadata/metadata.h
lib/metadata/mirror.c
This page took 0.036146 seconds and 5 git commands to generate.