ia64/xen-unstable

changeset 12079:32d074ff02ee

[XEND][LIFECYCLE] Configurable storage path for lifecycle support

Signed-off-by: Alastair Tse <atse@xensource.com>
author acnt2@huggins.lce.cl.cam.ac.uk
date Thu Oct 05 17:29:19 2006 +0100 (2006-10-05)
parents c11e827d6ac6
children db33b52f603e
files tools/python/xen/xend/XendRoot.py
line diff
     1.1 --- a/tools/python/xen/xend/XendRoot.py	Thu Oct 05 17:29:19 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendRoot.py	Thu Oct 05 17:29:19 2006 +0100
     1.3 @@ -93,6 +93,9 @@ class XendRoot:
     1.4  
     1.5      dom0_vcpus_default = '0'
     1.6  
     1.7 +    """Default session storage path."""
     1.8 +    xend_domains_path_default = '/var/lib/xend/domains'
     1.9 +
    1.10      components = {}
    1.11  
    1.12      def __init__(self):
    1.13 @@ -237,6 +240,11 @@ class XendRoot:
    1.14          """
    1.15          return self.get_config_value("xend-unix-path", self.xend_unix_path_default)
    1.16  
    1.17 +    def get_xend_domains_path(self):
    1.18 +        """ Get the path for persistent domain configuration storage
    1.19 +        """
    1.20 +        return self.get_config_value("xend-domains-path", self.xend_domains_path_default)
    1.21 +
    1.22      def get_network_script(self):
    1.23          """@return the script used to alter the network configuration when
    1.24          Xend starts and stops, or None if no such script is specified."""