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

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



From: Chen Hanxiao <chenhanxiao 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 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


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