Export block device read-only state into store.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-15 18:39:17 +00:00
1 parent 7bf7e25879
commit 5d7ce7cc39
1 file changed
+3
+3
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.