ia64/xen-unstable
changeset 12206:201a824f8240
Create /var/lib/xend/domains on startup if it doesn't exist.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | Ewan Mellor <ewan@xensource.com> |
---|---|
date | Wed Nov 01 13:50:02 2006 +0000 (2006-11-01) |
parents | 444496ecb14e |
children | 5165aa656363 |
files | tools/python/xen/xend/XendDomain.py |
line diff
1.1 --- a/tools/python/xen/xend/XendDomain.py Wed Nov 01 11:18:29 2006 +0000 1.2 +++ b/tools/python/xen/xend/XendDomain.py Wed Nov 01 13:50:02 2006 +0000 1.3 @@ -84,6 +84,13 @@ class XendDomain: 1.4 def init(self): 1.5 """Singleton initialisation function.""" 1.6 1.7 + dom_path = self._managed_path() 1.8 + try: 1.9 + os.stat(dom_path) 1.10 + except OSError: 1.11 + log.info("Making %s", dom_path) 1.12 + os.makedirs(dom_path, 0755) 1.13 + 1.14 xstransact.Mkdir(XS_VMROOT) 1.15 xstransact.SetPermissions(XS_VMROOT, {'dom': DOM0_ID}) 1.16