|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Export block device read-only state into store.
# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 75fe7890cf013178e376b88e00158c5b9c8c4324
# Parent 9d4f4ff1ff7732669ed1bde4393bac3c9af7073f
Export block device read-only state into store.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
diff -r 9d4f4ff1ff77 -r 75fe7890cf01 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Thu Sep 15 18:38:44 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py Thu Sep 15 18:39:17 2005
@@ -422,10 +422,13 @@
(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
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Export block device read-only state into store.,
Xen patchbot -unstable <=
|
|
|
|
|