WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 4 of 6] REBASE-4.1: xenops: update PV console path in x

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 4 of 6] REBASE-4.1: xenops: update PV console path in xenstore
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Tue, 11 Jan 2011 10:56:13 +0000
Cc: gianni.tedesco@xxxxxxxxxx, zheng.li@xxxxxxxxxxxxx
Delivery-date: Tue, 11 Jan 2011 03:49:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1294743369@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1294743369@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.5.2
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1294740909 0
# Node ID 244aa754f123ed8531afd4124fc54769559c0359
# Parent  7d294cb6a37ebaf8c459d1bb802a2b2d146c1bc1
REBASE-4.1: xenops: update PV console path in xenstore.

This was changed in more recent xenconsoled in order to better support multiple
consoles.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r 7d294cb6a37e -r 244aa754f123 ocaml/xenops/device.ml
--- a/ocaml/xenops/device.ml    Tue Jan 11 10:15:09 2011 +0000
+++ b/ocaml/xenops/device.ml    Tue Jan 11 10:15:09 2011 +0000
@@ -845,11 +845,11 @@ module PV_Vnc = struct
 
 let vncterm_wrapper = "/opt/xensource/libexec/vncterm-wrapper"
 
-let vnc_port_path domid = sprintf "/local/domain/%d/serial/0/vnc-port" domid
+let vnc_port_path domid = sprintf "/local/domain/%d/console/vnc-port" domid
 
 let pid ~xs domid =
        try
-               let pid = xs.Xs.read (sprintf 
"/local/domain/%d/serial/0/vncterm-pid" domid) in
+               let pid = xs.Xs.read (sprintf 
"/local/domain/%d/console/vncterm-pid" domid) in
                Some (int_of_string pid)
        with _ ->
                None
@@ -896,7 +896,7 @@ let save ~xs domid =
 let start ?statefile ~xs domid =
        let l = [ string_of_int domid; (* absorbed by vncterm-wrapper *)
                  (* everything else goes straight through to vncterm-wrapper: 
*)
-                 "-x"; sprintf "/local/domain/%d/serial/0" domid;
+                 "-x"; sprintf "/local/domain/%d/console" domid;
                ] @ load_args statefile in
        (* Now add the close fds wrapper *)
        let pid = Forkhelpers.safe_close_and_exec None None None [] 
vncterm_wrapper l in
diff -r 7d294cb6a37e -r 244aa754f123 scripts/vncterm-wrapper
--- a/scripts/vncterm-wrapper   Tue Jan 11 10:15:09 2011 +0000
+++ b/scripts/vncterm-wrapper   Tue Jan 11 10:15:09 2011 +0000
@@ -39,9 +39,9 @@ else
 fi
 
 echo vncterm-wrapper:
-xenstore-write -s /local/domain/$DOMID/serial/0/vncterm-pid $$
+xenstore-write -s /local/domain/$DOMID/console/vncterm-pid $$
 if [ -z "${XIU}" ]; then
        exec /usr/lib/xen/bin/vncterm $VNCTERM_LISTEN $VNCVIEWER $* > /dev/null 
2>&1
 else
-       exec xenstore-write -s /local/domain/$DOMID/serial/0/vnc-port 0
+       exec xenstore-write -s /local/domain/$DOMID/console/vnc-port 0
 fi

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api