tools: fix incorrect suggestions for XENCONSOLED_TRACE on FreeBSD
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
@@ -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
Quoted 3 lines · Olaf Hering
--log does not take a file, it specifies what is supposed to be logged.
Signed-off-by Olaf Hering <[email protected]>
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
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
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
Roger Pau Monné
Acked-byQuoted 36 lines · Andrew Cooper
Quoted 3 lines · Olaf Hering
--log does not take a file, it specifies what is supposed to be logged.
Signed-off-by Olaf Hering <[email protected]>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
-0tools/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*_TRACEvariable 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.