]> sourceware.org Git - lvm2.git/commit
Adding a new mimage (leg/copy) to a mirror behaves differently
authorJonathan Earl Brassow <jbrassow@redhat.com>
Fri, 5 Feb 2010 21:49:16 +0000 (21:49 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Fri, 5 Feb 2010 21:49:16 +0000 (21:49 +0000)
commitf607a0a0a6ffcbf3b55ba78f5cb7f626c07cc962
tree0cf99e6460f23fbd591498033110bd93d27defe7
parentb15ada28eda8879a1f0c7b17da0185f5da4743aa
Adding a new mimage (leg/copy) to a mirror behaves differently
depending on if the mirror has a 'core' or 'disk' log.  When there
is a disk log, the new leg is added by stacking a new mirror on
top of the old (one leg is the old mirror and the other leg is the newly
added device).  When the log is a 'core' log, the new leg is simply added
to the existing mirror and all the devices are re-synced.

The logic that handles collapsing the stacked 'disk' log mirror was
having the effect of causing 'core' logged mirrors to begin resync'ing
for a second time.  I have used the 'CONVERTING' flag to indicate that
a mirror is converting by way of stacking.  This is no longer set for
up-converting core logs.  The final 'collapse' logic can safely be skipped
for 'core' log mirrors - getting rid of the second resync.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
WHATS_NEW
tools/lvconvert.c
This page took 0.031175 seconds and 5 git commands to generate.