mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Export block device read-only state into store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
7bf7e25879
commit
5d7ce7cc39
1 file changed
+3
@@ -422,10 +422,13 @@ class XendDomainInfo:
|
||||
|
||||
(type, params) = string.split(sxp.child_value(devconfig,
|
||||
'uname'), ':', 1)
|
||||
readonly = sxp.child_value(devconfig, 'mode', 'r')
|
||||
back = { 'type' : type,
|
||||
'params' : params,
|
||||
'frontend' : frontpath,
|
||||
'frontend-id' : "%i" % self.domid }
|
||||
if readonly == 'r':
|
||||
back['read-only'] = "" # existence indicates read-only
|
||||
xstransact.Write(backpath, back)
|
||||
|
||||
return
|
||||
|
||||