mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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:
parent
cf704d22b6
commit
e9848871d6
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user