mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xend: Fix tapdisk creation for managed domains
The first start of a managed domain succeeds. But the second start of the managed domain fails as follows. The problem occurs when tapdisks are given to the managed domain. I think that the problem occurs because the uname of tapdisks is overwritten with "phy:/dev/xen/tadisk-2/tapdev*". Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
bd24e968e7
commit
7aeb062fbc
2 files changed
+2
-1
No files matched your search
@@ -1360,6 +1360,7 @@ class XendConfig(dict):
|
||||
if dev_info['uname'].split(':')[1] not in blktap_disk_types:
|
||||
raise XendConfigError("tap:%s not a valid disk type" %
|
||||
dev_info['uname'].split(':')[1])
|
||||
dev_info['required_uname'] = dev_info['uname']
|
||||
|
||||
if dev_type == 'vif':
|
||||
if not dev_info.get('mac'):
|
||||
|
||||
@@ -120,7 +120,7 @@ class BlktapController(BlkifController):
|
||||
|
||||
def createDevice(self, config):
|
||||
|
||||
uname = config.get('uname', '')
|
||||
uname = config.get('required_uname', '')
|
||||
try:
|
||||
(typ, subtyp, params, file) = string.split(uname, ':', 3)
|
||||
except:
|
||||
|
||||