Reload origin if stopped merging. Signed-off-by: Mikulas Patocka --- lib/metadata/lv_manip.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) Index: LVM2.2.02.39/lib/metadata/lv_manip.c =================================================================== --- LVM2.2.02.39.orig/lib/metadata/lv_manip.c 2008-08-03 23:46:21.000000000 +0200 +++ LVM2.2.02.39/lib/metadata/lv_manip.c 2008-08-03 23:47:24.000000000 +0200 @@ -1950,6 +1950,7 @@ int lv_remove_single(struct cmd_context struct volume_group *vg; struct lvinfo info; struct logical_volume *origin = NULL; + int was_merging = 0; vg = lv->vg; @@ -2025,6 +2026,7 @@ int lv_remove_single(struct cmd_context if (lv_is_cow(lv)) { origin = origin_from_cow(lv); + was_merging = !!origin->merging_snapshot; log_verbose("Removing snapshot %s", lv->name); if (!vg_remove_snapshot(lv)) return_0; @@ -2045,8 +2047,8 @@ int lv_remove_single(struct cmd_context if (!vg_commit(vg)) return 0; - /* If no snapshots left, reload without -real. */ - if (origin && !lv_is_origin(origin)) { + /* If no snapshots left or if we stopped merging, reload */ + if (origin && (!lv_is_origin(origin) || was_merging)) { if (!suspend_lv(cmd, origin)) log_error("Failed to refresh %s without snapshot.", origin->name); else if (!resume_lv(cmd, origin))