Skip to contentSkip to conversation

LVM2 ./WHATS_NEW lib/misc/lvm-exec.c

PATCH [email protected] 1 participant 1 message Sep 19, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-09-19 12:48:02

Modified files:
. : WHATS_NEW
lib/misc : lvm-exec.c

Log message:
Move debug message

so it does not look like we are executing command in the middle of critical_section in log trace.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2116&r2=1.2117
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/lvm-exec.c.diff?cvsroot=lvm2&r1=1.13&r2=1.14

WHATS_NEW +1 -0
@@ -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.
lib/misc/lvm-exec.c +2 -1
@@ -54,7 +54,6 @@
 	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 @@
 		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;