diff options
author | Alasdair G Kergon <agk@redhat.com> | 2014-07-03 19:06:04 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2014-07-03 19:06:04 +0100 |
commit | 1e1c2769a7092959e5c0076767b4973d4e4dc37c (patch) | |
tree | 3dd1f89e52f1ad4bff068c23c436182d9019fd25 /tools/vgmerge.c | |
parent | 64ce3a8066ead3bc2ee16e9cc286d68057bbe956 (diff) | |
download | lvm2-1e1c2769a7092959e5c0076767b4973d4e4dc37c.tar.gz |
vgsplit: Fix VG component of lvid.
Fix VG component of lvid in vgsplit and vgmerge
Update vg_validate() to detect the error.
Call lv_is_active() before moving LV into new VG, not after.
Diffstat (limited to 'tools/vgmerge.c')
-rw-r--r-- | tools/vgmerge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/vgmerge.c b/tools/vgmerge.c index 37827798f..a17a636c5 100644 --- a/tools/vgmerge.c +++ b/tools/vgmerge.c @@ -133,6 +133,7 @@ static int _vgmerge_single(struct cmd_context *cmd, const char *vg_name_to, dm_list_iterate_items(lvl1, &vg_from->lvs) { lvl1->lv->vg = vg_to; + lvl1->lv->lvid.id[0] = lvl1->lv->vg->id; } while (!dm_list_empty(&vg_from->lvs)) { |