This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] Create /var/lib/xend/domains on startup i

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Create /var/lib/xend/domains on startup if it doesn't exist.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Nov 2006 22:10:08 +0000
Delivery-date: Thu, 02 Nov 2006 21:29:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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.SetPermissions(XS_VMROOT, {'dom': DOM0_ID})

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Create /var/lib/xend/domains on startup if it doesn't exist., Xen patchbot-unstable <=