[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Create /var/lib/xend/domains on startup if it doesn't exist.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID 201a824f82408fe8e4cd7c5aa1ddff59fed68ea8
# Parent  444496ecb14e79f69fac012b4dc19613ad5f7c06
Create /var/lib/xend/domains on startup if it doesn't exist.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomain.py |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r 444496ecb14e -r 201a824f8240 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Wed Nov 01 11:18:29 2006 +0000
+++ b/tools/python/xen/xend/XendDomain.py       Wed Nov 01 13:50:02 2006 +0000
@@ -84,6 +84,13 @@ class XendDomain:
     def init(self):
         """Singleton initialisation function."""
 
+        dom_path = self._managed_path()
+        try:
+            os.stat(dom_path)
+        except OSError:
+            log.info("Making %s", dom_path)
+            os.makedirs(dom_path, 0755)
+
         xstransact.Mkdir(XS_VMROOT)
         xstransact.SetPermissions(XS_VMROOT, {'dom': DOM0_ID})
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.