]> xenbits.xensource.com Git - libvirt.git/commitdiff
* src/xm_internal.c: fix the parsing of predefined domains on
authorDaniel Veillard <veillard@redhat.com>
Wed, 21 Nov 2007 16:31:30 +0000 (16:31 +0000)
committerDaniel Veillard <veillard@redhat.com>
Wed, 21 Nov 2007 16:31:30 +0000 (16:31 +0000)
  xen prior to 3.1 to take into accound the fact that disk can
  be shareable.
Daniel

ChangeLog
src/xm_internal.c

index 8b1f6a187a531c773f9cc626d3cb6156feb63a7c..c380648693470d61924221bda6efccac22e66824 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Nov 21 17:29:42 CET 2007 Daniel Veillard <veillard@redhat.com>
+
+       * src/xm_internal.c: fix the parsing of predefined domains on
+         xen prior to 3.1 to take into accound the fact that disk can
+         be shareable.
+
 Wed Nov 21 11:59:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
 
        * docs/libvir.html, docs/site.xsl: Fix the link to OCaml
index a965b6cebae79f5ff0cad3165b13dcb37ab9dfb7..e8c1ac3e45403c5c865d2e5618365fd1c7f90a78 100644 (file)
@@ -810,6 +810,9 @@ char *xenXMDomainFormatXML(virConnectPtr conn, virConfPtr conf) {
             if (!strcmp(head, "r") ||
                 !strcmp(head, "ro"))
                 virBufferAdd(buf, "      <readonly/>\n", -1);
+           else if ((!strcmp(head, "w!")) ||
+                    (!strcmp(head, "!")))
+               virBufferAdd(buf, "      <shareable/>\n", -1);
             virBufferAdd(buf, "    </disk>\n", -1);
 
         skipdisk: