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] [xen-unstable] xend: Show "bootable" information only on

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: Show "bootable" information only once in 'xm list --long'
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Jun 2009 06:05:13 -0700
Delivery-date: Tue, 16 Jun 2009 06:05:41 -0700
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245146136 -3600
# Node ID 376c0749586e7004e8091500a320bd1e96c79c7f
# Parent  465950bbdf46d720d61575f0ce33d18b5e8cc506
xend: Show "bootable" information only once in 'xm list --long'

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendConfig.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff -r 465950bbdf46 -r 376c0749586e tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py       Tue Jun 16 10:54:10 2009 +0100
+++ b/tools/python/xen/xend/XendConfig.py       Tue Jun 16 10:55:36 2009 +0100
@@ -1100,12 +1100,11 @@ class XendConfig(dict):
                             configs = controller.configurations(txn)
                             for config in configs:
                                 if sxp.name(config) in ('vbd', 'tap'):
-                                    # The bootable flag is never written to the
-                                    # store as part of the device config.
                                     dev_uuid = sxp.child_value(config, 'uuid')
                                     dev_type, dev_cfg = 
self['devices'][dev_uuid]
-                                    is_bootable = dev_cfg.get('bootable', 0)
-                                    config.append(['bootable', 
int(is_bootable)])
+                                    if sxp.child_value(config, 'bootable', 
None) is None:
+                                        is_bootable = dev_cfg.get('bootable', 
0)
+                                        config.append(['bootable', 
int(is_bootable)])
                                     config.append(['VDI', dev_cfg.get('VDI', 
'')])
 
                                 sxpr.append(['device', config])

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend: Show "bootable" information only once in 'xm list --long', Xen patchbot-unstable <=