mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-26 15:14:42 +00:00
Fix Xen block detach with newer Xend (Cole RobinSon / Tomohiro Takahashi)
This commit is contained in:
parent
7f39e2e5e5
commit
4dfb7e8b2e
@ -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>
|
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
|
* src/cgroup.c src/cgroup.h src/lxc_driver.c: allows to get
|
||||||
|
@ -5566,7 +5566,12 @@ virDomainXMLDevID(virDomainPtr domain,
|
|||||||
char *xref;
|
char *xref;
|
||||||
|
|
||||||
if (dev->type == VIR_DOMAIN_DEVICE_DISK) {
|
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)
|
if (dev->data.disk->dst == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
xenUnifiedLock(priv);
|
xenUnifiedLock(priv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user