[lvm-devel] [PATCH] lvconvert --repair refactor

Petr Rockai prockai at redhat.com
Wed Feb 16 08:45:30 UTC 2011


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 --------------

-- 
id' Ash = Ash; id' Dust = Dust; id' _ = undefined


More information about the lvm-devel mailing list