1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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 cf704d22b6
commit e9848871d6
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.74 - Version 2.02.74 -
================================== ==================================
Fix return code of pvmove --abort PV.
Fix pvmove --abort to remove even for empty pvmove LV. Fix pvmove --abort to remove even for empty pvmove LV.
Add configure --with-default-data-alignment. Add configure --with-default-data-alignment.
Update heuristic used for default and detected 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."); "can't abort.");
return 0; return 0;
} }
parms->poll_fns->finish_copy(cmd, vg, lv, lvs_changed); if (!parms->poll_fns->finish_copy(cmd, vg, lv, lvs_changed))
return 0; return_0;
return 1;
} }
progress = parms->poll_fns->poll_progress(cmd, lv, name, parms); progress = parms->poll_fns->poll_progress(cmd, lv, name, parms);