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

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

 



On Mon, Mar 07, 2011 at 11:36:48AM +0800, Wen Congyang wrote:
> Signed-off-by: Wen Congyang <wency@xxxxxxxxxxxxxx>
> 
> ---
>  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 :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]