[Libvirt-cim] [PATCH 2 of 2] Make xml_parse_test work for LXC guests (for disk devices and system)

Dan Smith danms at us.ibm.com
Tue Mar 25 20:45:10 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1206477901 25200
# Node ID c2b027700cb7a3075a9b9f56acd6d52cbd1f6fdf
# Parent  b0e186e914481af381875b5f7465018bdb9fe1e1
Make xml_parse_test work for LXC guests (for disk devices and system)

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r b0e186e91448 -r c2b027700cb7 libxkutil/xml_parse_test.c
--- a/libxkutil/xml_parse_test.c	Tue Mar 25 13:43:21 2008 -0700
+++ b/libxkutil/xml_parse_test.c	Tue Mar 25 13:45:01 2008 -0700
@@ -44,6 +44,8 @@ static void print_os(struct domain *dom,
                 print_value(d, "Type", dom->os_info.fv.type);
                 print_value(d, "Loader", dom->os_info.fv.loader);
                 print_value(d, "Boot", dom->os_info.fv.boot);
+        } else if (dom->type == DOMAIN_LXC) {
+                print_value(d, "Init", dom->os_info.lxc.init);
         } else {
                 fprintf(d, "[ Unknown domain type %i ]\n", dom->type);
         }




More information about the Libvirt-cim mailing list