|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xend: Ensure bootable flag is set in inte
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1178010908 -3600
# Node ID 476efa5c9abf8634ab00cadb6a4bd4b7bbd2000b
# Parent 5b4a02335182a331519840d57308fbc2f027316d
xend: Ensure bootable flag is set in internal xend config for tap
devices.
Original patch by: Jim Fehlig <jfehlig@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
tools/python/xen/xend/XendConfig.py | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diff -r 5b4a02335182 -r 476efa5c9abf tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py Tue May 01 10:08:36 2007 +0100
+++ b/tools/python/xen/xend/XendConfig.py Tue May 01 10:15:08 2007 +0100
@@ -988,19 +988,16 @@ class XendConfig(dict):
if param not in target:
target[param] = []
if dev_uuid not in target[param]:
- if dev_type == 'vbd' and not target[param]:
- # Compat hack -- this is the first disk, so mark it
- # bootable.
- dev_info['bootable'] = 1
+ if dev_type == 'vbd':
+ # Compat hack -- mark first disk bootable
+ dev_info['bootable'] = int(not target[param])
target[param].append(dev_uuid)
elif dev_type == 'tap':
if 'vbd_refs' not in target:
target['vbd_refs'] = []
if dev_uuid not in target['vbd_refs']:
- if not target['vbd_refs']:
- # Compat hack -- this is the first disk, so mark it
- # bootable.
- dev_info['bootable'] = 1
+ # Compat hack -- mark first disk bootable
+ dev_info['bootable'] = int(not target['vbd_refs'])
target['vbd_refs'].append(dev_uuid)
elif dev_type == 'vfb':
_______________________________________________
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: Ensure bootable flag is set in internal xend config for tap,
Xen patchbot-unstable <=
|
|
|
|
|