提交 4dfb7e8b 编写于 作者: D Daniel P. Berrange

Fix Xen block detach with newer Xend (Cole RobinSon / Tomohiro Takahashi)

上级 7f39e2e5
Tue Mar 10 10:29:46 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* src/xend_internal.c: Fix tap vs vbd type for block detach
(Cole Robinson / Takahashi Tomohiro)
Fri Mar 6 15:42:46 CET 2009 Daniel Veillard <veilard@redhat.com>
* src/cgroup.c src/cgroup.h src/lxc_driver.c: allows to get
......
......@@ -5566,7 +5566,12 @@ virDomainXMLDevID(virDomainPtr domain,
char *xref;
if (dev->type == VIR_DOMAIN_DEVICE_DISK) {
strcpy(class, "vbd");
if (dev->data.disk->driverName &&
STREQ(dev->data.disk->driverName, "tap"))
strcpy(class, "tap");
else
strcpy(class, "vbd");
if (dev->data.disk->dst == NULL)
return -1;
xenUnifiedLock(priv);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册