diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2010-06-28 20:39:08 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2010-06-28 20:39:08 +0000 |
commit | c6c031e4a14ca72abfcace70ea40b3dcf7bb8577 (patch) | |
tree | a35eb670f451928beb7b4127e054018ad44c5de5 /tools/vgmerge.c | |
parent | a09a8efb66e28492f680017015181d9f91b5a993 (diff) | |
download | lvm2-c6c031e4a14ca72abfcace70ea40b3dcf7bb8577.tar.gz lvm2-c6c031e4a14ca72abfcace70ea40b3dcf7bb8577.tar.xz lvm2-c6c031e4a14ca72abfcace70ea40b3dcf7bb8577.zip |
Update _vgmerge_single() to move fid->metadata_areas_ignored.
When vgmerge is called we move the mdas from the source to the
destination. With metadata balancing we now have another mda
list, fid->metadata_areas_ignored, so move the mdas on this list
as well.
This patch should not matter as the code is written today. However
we include it for completeness in the case that _vgmerge_single()
is refactored and/or moved into a library function.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Diffstat (limited to 'tools/vgmerge.c')
-rw-r--r-- | tools/vgmerge.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/vgmerge.c b/tools/vgmerge.c index c5149a93..6dba99bb 100644 --- a/tools/vgmerge.c +++ b/tools/vgmerge.c @@ -126,6 +126,12 @@ static int _vgmerge_single(struct cmd_context *cmd, const char *vg_name_to, dm_list_move(&vg_to->fid->metadata_areas_in_use, mdah); } + while (!dm_list_empty(&vg_from->fid->metadata_areas_ignored)) { + struct dm_list *mdah = vg_from->fid->metadata_areas_ignored.n; + + dm_list_move(&vg_to->fid->metadata_areas_ignored, mdah); + } + vg_to->extent_count += vg_from->extent_count; vg_to->free_count += vg_from->free_count; |