All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix bugs in temporary mirror layer handling
@ 2011-03-19 23:33 Petr Rockai
  2011-03-21 21:29 ` Jonathan Brassow
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Rockai @ 2011-03-19 23:33 UTC (permalink / raw)
  To: lvm-devel

Hi,

while working on vgreduce --removemissing --force, I have uncovered
about half a dozen bugs in handling mirror image removal with temporary
layers present in the mirror stack.

In some cases, we could end up with a mirrored LV without a MIRRORED
flag. In other cases, the code could wind up removing wrong number of
mirrors. In yet other cases, we could remove the right number of
mirrors, but fail to respect the removal preferences (i.e. keep an image
that was requested to be removed while removing an image that was
requested to be kept). Under some circumstances, remove_mirror_images
could also get stuck in an infinite loop.

I think the proposed version of remove_mirror_images should get through
all of these above cases correctly. I have tried to explain specific
problems in the comments in the code.

The patch did not break any tests from the test suite for me. It is a
prerequisite for vgreduce --removemissing --force, but it also fixes the
above bugs when triggered in plain lvconvert and in lvconvert --repair.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp-mirror-layer-fixes.diff
Type: text/x-diff
Size: 5315 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20110320/ed89d66e/attachment.bin>
-------------- next part --------------

Yours,
   Petr

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-22  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <24010.4646225975$1300623398@news.gmane.org>
2011-03-22  7:42 ` [PATCH] fix bugs in temporary mirror layer handling Zdenek Kabelac
2011-03-19 23:33 Petr Rockai
2011-03-21 21:29 ` Jonathan Brassow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.