1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Move debug message

so it does not look like we are executing command in the middle of
critical_section in log trace.
This commit is contained in:
Zdenek Kabelac 2011-09-19 12:48:02 +00:00
parent 11dd5cf2aa
commit 5f3f06db66
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.89 -
==================================
Move debug message in exec_cmd after sync_local_dev_names.
Fix clvmd processing of invalid request on local socket.
Fix command line option decoding.
Reset LV status when unlinking LV from VG.

View File

@ -54,7 +54,6 @@ int exec_cmd(struct cmd_context *cmd, const char *const argv[],
int status;
char buf[PATH_MAX * 2];
log_verbose("Executing: %s", _verbose_args(argv, buf, sizeof(buf)));
if (rstatus)
*rstatus = -1;
@ -63,6 +62,8 @@ int exec_cmd(struct cmd_context *cmd, const char *const argv[],
if (!sync_local_dev_names(cmd)) /* Flush ops and reset dm cookie */
return_0;
log_verbose("Executing: %s", _verbose_args(argv, buf, sizeof(buf)));
if ((pid = fork()) == -1) {
log_error("fork failed: %s", strerror(errno));
return 0;