summaryrefslogtreecommitdiffstats
path: root/tools/pvmove.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pvmove.c')
-rw-r--r--tools/pvmove.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c
index c8a480fd..0346ca34 100644
--- a/tools/pvmove.c
+++ b/tools/pvmove.c
@@ -520,7 +520,8 @@ static int _finish_pvmove(struct cmd_context *cmd, struct volume_group *vg,
{
int r = 1;
- if (!_detach_pvmove_mirror(cmd, lv_mirr)) {
+ if (!dm_list_empty(lvs_changed) &&
+ !_detach_pvmove_mirror(cmd, lv_mirr)) {
log_error("ABORTING: Removal of temporary mirror failed");
return 0;
}