mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Revert patch
Caller of exec must report log_error when rstatus is passed.
This commit is contained in:
parent
a6fd7ce6a5
commit
cc8b9dd973
@ -1,6 +1,5 @@
|
||||
Version 2.02.89 -
|
||||
==================================
|
||||
Use log_error instead of log_verbose when executed command fails.
|
||||
Add support for non /dev device paths into fsadm script.
|
||||
Support different PATH setting for fsadm script testing.
|
||||
Surround all executed commands with quotes in fsadm script.
|
||||
|
@ -96,7 +96,7 @@ int exec_cmd(struct cmd_context *cmd, const char *const argv[],
|
||||
if (WEXITSTATUS(status)) {
|
||||
if (rstatus) {
|
||||
*rstatus = WEXITSTATUS(status);
|
||||
log_error("%s failed: %u", argv[0], *rstatus);
|
||||
log_verbose("%s failed: %u", argv[0], *rstatus);
|
||||
} else
|
||||
log_error("%s failed: %u", argv[0], WEXITSTATUS(status));
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user