1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvconvert: Fix reload after snapshot conversion.

At the end of lvconvert --snapshot with an active origin, the origin
gets reloaded.

Commit 57c0f72b1d ("lvconvert: use
_reload_lv on more places") accidentally replaced this with a snapshot
LV reload (which does nothing because only the origin is active).
This commit is contained in:
Alasdair G Kergon 2013-12-04 02:04:29 +00:00
parent 6232cac86c
commit ff769ecfe7
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.105 -
=====================================
Reinstate origin reload to complete lvconvert -s with active LVs. (2.02.98)
Select only active volume groups if vgdisplay -A is used.
Add -p and LVM_LVMETAD_PID env var to lvmetad to change pid file.
Allow lvmetad to reuse stale socket.

View File

@ -1864,7 +1864,7 @@ static int lvconvert_snapshot(struct cmd_context *cmd,
}
/* store vg on disk(s) */
if (!_reload_lv(cmd, lv->vg, lv))
if (!_reload_lv(cmd, lv->vg, org))
return_0;
log_print_unless_silent("Logical volume %s converted to snapshot.", lv->name);