summaryrefslogtreecommitdiff
path: root/tools/vgmerge.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2008-04-10 19:14:27 +0000
committerAlasdair Kergon <agk@redhat.com>2008-04-10 19:14:27 +0000
commit0b2a795ece5e11bdeb94f7577280098022acf82e (patch)
tree3c1507646e07e621006b6f1b263eb05b32810776 /tools/vgmerge.c
parent55ea8590ae02b2e8be3c8796a6e33c3f764badeb (diff)
downloadlvm2-0b2a795ece5e11bdeb94f7577280098022acf82e.tar.gz
make list_move consistent with other list fns
Diffstat (limited to 'tools/vgmerge.c')
-rw-r--r--tools/vgmerge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/vgmerge.c b/tools/vgmerge.c
index 7e1514850..6ba14b3fe 100644
--- a/tools/vgmerge.c
+++ b/tools/vgmerge.c
@@ -54,7 +54,7 @@ static int _vgmerge_single(struct cmd_context *cmd, const char *vg_name_to,
struct list *pvh = vg_from->pvs.n;
struct physical_volume *pv;
- list_move(pvh, &vg_to->pvs);
+ list_move(&vg_to->pvs, pvh);
pv = list_item(pvh, struct pv_list)->pv;
pv->vg_name = dm_pool_strdup(cmd->mem, vg_to->name);
@@ -89,13 +89,13 @@ static int _vgmerge_single(struct cmd_context *cmd, const char *vg_name_to,
while (!list_empty(&vg_from->lvs)) {
struct list *lvh = vg_from->lvs.n;
- list_move(lvh, &vg_to->lvs);
+ list_move(&vg_to->lvs, lvh);
}
while (!list_empty(&vg_from->fid->metadata_areas)) {
struct list *mdah = vg_from->fid->metadata_areas.n;
- list_move(mdah, &vg_to->fid->metadata_areas);
+ list_move(&vg_to->fid->metadata_areas, mdah);
}
vg_to->lv_count += vg_from->lv_count;