[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 2/2] support to detach USB disk



On Mon, Mar 07, 2011 at 11:36:48AM +0800, Wen Congyang wrote:
> Signed-off-by: Wen Congyang <wency cn fujitsu com>
> 
> ---
>  src/qemu/qemu_driver.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index f4e52b1..2892dfe 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -4282,6 +4282,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",

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]