Revision 069cfbf1 lib/hypervisor/hv_xen.py
b/lib/hypervisor/hv_xen.py | ||
---|---|---|
256 | 256 |
# FIXME: instead of this hardcoding here, each of PVM/HVM should |
257 | 257 |
# directly export their info (currently HVM will just sed this info) |
258 | 258 |
namespace = ["sd" + chr(i + ord('a')) for i in range(24)] |
259 |
for sd_name, (cfdev, rldev) in zip(namespace, block_devices):
|
|
259 |
for sd_name, (cfdev, dev_path) in zip(namespace, block_devices):
|
|
260 | 260 |
if cfdev.dev_type == constants.LD_FILE: |
261 | 261 |
line = "'%s:%s,%s,w'" % (FILE_DRIVER_MAP[cfdev.physical_id[0]], |
262 |
rldev.dev_path, sd_name)
|
|
262 |
dev_path, sd_name) |
|
263 | 263 |
else: |
264 |
line = "'phy:%s,%s,w'" % (rldev.dev_path, sd_name)
|
|
264 |
line = "'phy:%s,%s,w'" % (dev_path, sd_name) |
|
265 | 265 |
disk_data.append(line) |
266 | 266 |
|
267 | 267 |
return disk_data |
Also available in: Unified diff