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

This commit is contained in:
Daniel P. Berrange 2009-03-10 10:32:24 +00:00
parent 7f39e2e5e5
commit 4dfb7e8b2e
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);