]> sourceware.org Git - lvm2.git/commit
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)
commit17617fe839fcd86d9dc669bbc05fe5012f7b9f85
tree2bec42c578d00904ea4a46366f1ea5851613f022
parent7f4173ab225a67dc5f88f5c95968b644bb008b67
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.03222 seconds and 5 git commands to generate.