Skip to contentSkip to conversation

tools: fix incorrect suggestions for XENCONSOLED_TRACE on FreeBSD

PATCH In review Olaf Hering 3 participants 4 messages May 4, 2021 – May 7, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: fix incorrect suggestions for XENCONSOLED_TRACE on FreeBSD

--log does not take a file, it specifies what is supposed to be logged.

---
 tools/hotplug/FreeBSD/rc.d/xencommons.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/hotplug/FreeBSD/rc.d/xencommons.in +1 -1
index ccd5a9b055..36dd717944 100644
@@ -23,7 +23,7 @@ required_files="/dev/xen/xenstored"
 
 XENSTORED_PIDFILE="@XEN_RUN_DIR@/xenstored.pid"
 XENCONSOLED_PIDFILE="@XEN_RUN_DIR@/xenconsoled.pid"
-#XENCONSOLED_TRACE="@XEN_LOG_DIR@/xenconsole-trace.log"
+#XENCONSOLED_TRACE="none|guest|hv|all"
 #XENSTORED_TRACE="@XEN_LOG_DIR@/xen/xenstore-trace.log"
 
 load_rc_config $name
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Olaf Hering

--log does not take a file, it specifies what is supposed to be logged.

Quoted 9 lines
---
 tools/hotplug/FreeBSD/rc.d/xencommons.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/hotplug/FreeBSD/rc.d/xencommons.in +0 -0
index ccd5a9b055..36dd717944 100644

tools/hotplug/FreeBSD/rc.d/xencommons.in required_files="/dev/xen/xenstored" · line 27

Quoted 6 lines
tools/hotplug/FreeBSD/rc.d/xencommons.in +1 -1
@@ -23,7 +23,7 @@ required_files="/dev/xen/xenstored"
 
 XENSTORED_PIDFILE="@XEN_RUN_DIR@/xenstored.pid"
 XENCONSOLED_PIDFILE="@XEN_RUN_DIR@/xenconsoled.pid"
-#XENCONSOLED_TRACE="@XEN_LOG_DIR@/xenconsole-trace.log"
+#XENCONSOLED_TRACE="none|guest|hv|all"
 #XENSTORED_TRACE="@XEN_LOG_DIR@/xen/xenstore-trace.log"

It would probably be clearer to untangle these in one go, leaving the result looking like:

XENCONSOLED_PIDFILE="@XEN_RUN_DIR@/xenconsoled.pid" #XENCONSOLED_TRACE="none|guest|hv|all"

XENSTORED_PIDFILE="@XEN_RUN_DIR@/xenstored.pid" #XENSTORED_TRACE="@XEN_LOG_DIR@/xen/xenstore-trace.log"

I'd also be tempted to fold this and the NetBSD change together.  It's not as if these bugfixes are distro-specific.

It looks like a bug in NetBSD in c/s 2e8644e1d90, which was copied into FreeBSD by c/s 5dcdb2bf569.  (P.S. Sorry Roger - both your bugs, starting from a decade ago).  It really is idiotic that we've got a commonly named *_TRACE variable with totally different semantics for the two daemons.  Then again, its far too late to fix this :(

~Andrew

#2 lore raw

Am Tue, 4 May 2021 18:47:12 +0100
schrieb Andrew Cooper <[email protected]>:

Quoted 2 lines

I'd also be tempted to fold this and the NetBSD change together.  It's not as if these bugfixes are distro-specific.

I will redo the BSD patches as you suggested.

Olaf

#3 lore raw
In reply to Andrew Cooper
Quoted 36 lines · Andrew Cooper
Quoted 3 lines · Olaf Hering

--log does not take a file, it specifies what is supposed to be logged.

Quoted 9 lines
---
 tools/hotplug/FreeBSD/rc.d/xencommons.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/hotplug/FreeBSD/rc.d/xencommons.in +0 -0
index ccd5a9b055..36dd717944 100644

tools/hotplug/FreeBSD/rc.d/xencommons.in required_files="/dev/xen/xenstored" · line 27

Quoted 6 lines
tools/hotplug/FreeBSD/rc.d/xencommons.in +1 -1
@@ -23,7 +23,7 @@ required_files="/dev/xen/xenstored"
 
 XENSTORED_PIDFILE="@XEN_RUN_DIR@/xenstored.pid"
 XENCONSOLED_PIDFILE="@XEN_RUN_DIR@/xenconsoled.pid"
-#XENCONSOLED_TRACE="@XEN_LOG_DIR@/xenconsole-trace.log"
+#XENCONSOLED_TRACE="none|guest|hv|all"
 #XENSTORED_TRACE="@XEN_LOG_DIR@/xen/xenstore-trace.log"

It would probably be clearer to untangle these in one go, leaving the result looking like:

XENCONSOLED_PIDFILE="@XEN_RUN_DIR@/xenconsoled.pid" #XENCONSOLED_TRACE="none|guest|hv|all"

XENSTORED_PIDFILE="@XEN_RUN_DIR@/xenstored.pid" #XENSTORED_TRACE="@XEN_LOG_DIR@/xen/xenstore-trace.log"

I'd also be tempted to fold this and the NetBSD change together.  It's not as if these bugfixes are distro-specific.

Quoted 5 lines

It looks like a bug in NetBSD in c/s 2e8644e1d90, which was copied into FreeBSD by c/s 5dcdb2bf569.  (P.S. Sorry Roger - both your bugs, starting from a decade ago).  It really is idiotic that we've got a commonly named *_TRACE variable with totally different semantics for the two daemons.  Then again, its far too late to fix this :(

Ups, sorry. Feel free to fix those in one go, and add my:

Thanks, Roger.