From 0e29f71135c4babcee33e9d0b16db63b1c40907f Mon Sep 17 00:00:00 2001 From: Wen Congyang Date: Mon, 7 Mar 2011 11:36:48 +0800 Subject: [PATCH] support to detach USB disk Signed-off-by: Wen Congyang --- src/qemu/qemu_driver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 170c9c8ca2..0f7cbad68d 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -4278,6 +4278,8 @@ static int qemudDomainDetachDevice(virDomainPtr dom, } else if (dev->data.disk->bus == VIR_DOMAIN_DISK_BUS_SCSI) { ret = qemuDomainDetachDiskDevice(driver, vm, dev, qemuCaps); + } else if (dev->data.disk->bus == VIR_DOMAIN_DISK_BUS_USB) { + ret = qemuDomainDetachDiskDevice(driver, vm, dev, qemuCaps); } else { qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", -- GitLab