mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix some pvmove error status codes.
This commit is contained in:
parent
f99a79b64a
commit
178e1df257
@ -1,5 +1,6 @@
|
||||
Version 2.02.34 -
|
||||
===================================
|
||||
Fix some pvmove error status codes.
|
||||
Fix vgsplit error paths to release vg_to lock.
|
||||
Indicate whether or not VG is clustered in vgcreate log message.
|
||||
Mention default --clustered setting in vgcreate man page.
|
||||
|
@ -565,8 +565,10 @@ int pvmove(struct cmd_context *cmd, int argc, char **argv)
|
||||
char *colon;
|
||||
int ret;
|
||||
|
||||
if (!pvmove_target_present(cmd, 0))
|
||||
return 0;
|
||||
if (!pvmove_target_present(cmd, 0)) {
|
||||
stack;
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
||||
if (argc) {
|
||||
pv_name = argv[0];
|
||||
@ -577,7 +579,7 @@ int pvmove(struct cmd_context *cmd, int argc, char **argv)
|
||||
(unsigned) (colon -
|
||||
pv_name)))) {
|
||||
log_error("Failed to clone PV name");
|
||||
return 0;
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
@ -587,7 +589,6 @@ int pvmove(struct cmd_context *cmd, int argc, char **argv)
|
||||
stack;
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return pvmove_poll(cmd, pv_name,
|
||||
|
Loading…
Reference in New Issue
Block a user