1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Fix pvmove --abort <dev> return code

It prints error code even if abort operation succeeds:

pvmove --abort /dev/sdb
  Command failed with status code 5.
This commit is contained in:
Milan Broz 2010-08-23 11:34:40 +00:00
parent bda6449118
commit 2a7bbc7e46
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.74 -
==================================
Fix return code of pvmove --abort PV.
Fix pvmove --abort to remove even for empty pvmove LV.
Add configure --with-default-data-alignment.
Update heuristic used for default and detected data alignment.

View File

@ -120,8 +120,10 @@ static int _check_lv_status(struct cmd_context *cmd,
"can't abort.");
return 0;
}
parms->poll_fns->finish_copy(cmd, vg, lv, lvs_changed);
return 0;
if (!parms->poll_fns->finish_copy(cmd, vg, lv, lvs_changed))
return_0;
return 1;
}
progress = parms->poll_fns->poll_progress(cmd, lv, name, parms);