WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Export block device read-only state into store.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Export block device read-only state into store.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Sep 2005 18:40:11 +0000
Delivery-date: Fri, 16 Sep 2005 08:11:19 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=