projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ffcc43
)
Create /var/lib/xend/domains on startup if it doesn't exist.
author
Ewan Mellor
<ewan@xensource.com>
Wed, 1 Nov 2006 13:50:02 +0000
(13:50 +0000)
committer
Ewan Mellor
<ewan@xensource.com>
Wed, 1 Nov 2006 13:50:02 +0000
(13:50 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomain.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendDomain.py
b/tools/python/xen/xend/XendDomain.py
index 99a2c12e838b9614ad4aacdb773d37aca754ca77..5660832f788fda95961e7177b95d6b8d16467855 100644
(file)
--- a/
tools/python/xen/xend/XendDomain.py
+++ b/
tools/python/xen/xend/XendDomain.py
@@
-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})