]> sourceware.org Git - lvm2.git/commit
Fix wrong number of mirror log at allocate policy
authorTakahiro Yasui <tyasui@redhat.com>
Fri, 30 Jul 2010 17:50:15 +0000 (17:50 +0000)
committerTakahiro Yasui <tyasui@redhat.com>
Fri, 30 Jul 2010 17:50:15 +0000 (17:50 +0000)
commit8f1afa176634d38d75aa17fe5010fa6529b27eed
tree3b564cbb8d8decea4899141f13b27e3acd8a480d
parentc0789ae1b4e06fc6891ac8d2f43ee431afc4767b
Fix wrong number of mirror log at allocate policy

With mirror_log_fault_policy of 'remove' and mirror_image_fault_policy
of 'allocate', the log type of the mirror volume is converted from
'disk' or 'mirrored' to 'core' when all mirror legs but one in a mirror
volume broke.

Keep new_log_count as a number of valid log devices by using log_count
variable for a temporary usage in the first phase of error recovery
in _lvconvert_mirrors_repair().

Signed-off-by: Takahiro Yasui <takahiro.yasui@hds.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
WHATS_NEW
tools/lvconvert.c
This page took 0.038948 seconds and 5 git commands to generate.