]> git.pld-linux.org Git - packages/xen.git/commitdiff
- xend fails to start if /var/lib/xend/state/*.xml are empty
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 29 Feb 2012 21:06:07 +0000 (21:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xend.empty.xml.patch -> 1.1

xend.empty.xml.patch [new file with mode: 0644]

diff --git a/xend.empty.xml.patch b/xend.empty.xml.patch
new file mode 100644 (file)
index 0000000..e3f29d3
--- /dev/null
@@ -0,0 +1,15 @@
+http://lists.xensource.com/archives/html/xen-devel/2011-11/msg00218.html
+
+diff -r 54a5e994a241 -r 76391f599433 tools/python/xen/xend/XendStateStore.py
+--- a/tools/python/xen/xend/XendStateStore.py   Wed Nov 02 17:09:09 2011 +0000
++++ b/tools/python/xen/xend/XendStateStore.py   Thu Nov 03 12:02:44 2011 -0400
+@@ -101,6 +101,9 @@ class XendStateStore:
+         if not os.path.exists(xml_path):
+             return {}
++        if not os.path.getsize(xml_path) == 0:
++            return {}
++
+         dom = minidom.parse(xml_path)
+         root = dom.documentElement
+         state = {}
This page took 0.121661 seconds and 4 git commands to generate.