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

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Tue Dec 11 09:07:59 UTC 2012


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"
-- 
1.7.1




More information about the virt-tools-list mailing list