ia64/xen-unstable

changeset 6904:75fe7890cf01

Export block device read-only state into store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Sep 15 18:39:17 2005 +0000 (2005-09-15)
parents 9d4f4ff1ff77
children fd19e760932d
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Sep 15 18:38:44 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Sep 15 18:39:17 2005 +0000
     1.3 @@ -422,10 +422,13 @@ class XendDomainInfo:
     1.4  
     1.5              (type, params) = string.split(sxp.child_value(devconfig,
     1.6                                                            'uname'), ':', 1)
     1.7 +            readonly = sxp.child_value(devconfig, 'mode', 'r')
     1.8              back = { 'type' : type,
     1.9                       'params' : params,
    1.10                       'frontend' : frontpath,
    1.11                       'frontend-id' : "%i" % self.domid }
    1.12 +            if readonly == 'r':
    1.13 +                back['read-only'] = ""  # existence indicates read-only
    1.14              xstransact.Write(backpath, back)
    1.15  
    1.16              return