1
0
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:
Zdenek Kabelac 2011-09-19 18:38:43 +00:00
parent a6fd7ce6a5
commit cc8b9dd973
2 changed files with 1 additions and 2 deletions

View File

@ -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.

View File

@ -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;