Skip to contentSkip to conversation

lvconvert --repair refactor

PATCH New Petr Rockai 1 participant 1 message Feb 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lvconvert --repair refactor

Hi,

the attached patch (no functional change intended, apart from a minor bug fix) adds a new entry point in the mirror lvconvert code, for removing missing mirror images and/or logs, without attempting any further actions.

The minor bug fix relates to the warning messages issued at the end of _lv_convert_mirror_repair, which sometimes fired even if they weren't supposed to (and sometimes got the counts wrong, too).

The new entry point will be useful in vgreduce --removemissing --force for treating mirrors, replacing a lot of custom code. Unfortunately, it turns out that the code that lvconvert uses (_remove_mirror_images in metadata/mirror.c) has some bugs on its own that need fixing before vgreduce can be completely switched over.

Nevertheless, I'm going to post the draft patch for vgreduce and then try to hunt down the _remove_mirror_images bugs.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvconvert-repair-refactor.diff
Type: text/x-diff
Size: 8482 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20110216/2f9f9894/attachment.bin>
-------------- next part --------------

Signature · 1 line
id' Ash = Ash; id' Dust = Dust; id' _ = undefined