[virt-tools-list] [virtinst] Introduce device type 'lun'

Cole Robinson crobinso at redhat.com
Sat Dec 15 00:23:46 UTC 2012


On 12/11/2012 04:07 AM, Chen Hanxiao wrote:
> From: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
> 
>  Supporting SG_IO commands pass though,
>  introduce a new device type 'lun'
>  to keep pace with libvirt.
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
> ---
>  virtinst/VirtualDisk.py |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/virtinst/VirtualDisk.py b/virtinst/VirtualDisk.py
> index 14986be..97e4843 100644
> --- a/virtinst/VirtualDisk.py
> +++ b/virtinst/VirtualDisk.py
> @@ -307,9 +307,10 @@ class VirtualDisk(VirtualDevice):
>          CACHE_MODE_WRITEBACK]
>  
>      DEVICE_DISK = "disk"
> +    DEVICE_LUN = "lun" 
>      DEVICE_CDROM = "cdrom"
>      DEVICE_FLOPPY = "floppy"
> -    devices = [DEVICE_DISK, DEVICE_CDROM, DEVICE_FLOPPY]
> +    devices = [DEVICE_DISK, DEVICE_LUN, DEVICE_CDROM, DEVICE_FLOPPY]
>  
>      TYPE_FILE = "file"
>      TYPE_BLOCK = "block"
> 

Thanks Chen, added you to AUTHORS and pushed!

- Cole




More information about the virt-tools-list mailing list