File virtinst-git-lun.diff of Package python-virtinst
Subject: Introduce device type 'lun'
From: Chen Hanxiao chenhanxiao@cn.fujitsu.com Tue Dec 11 17:07:59 2012 +0800
Date: Fri Dec 14 19:23:01 2012 -0500:
Git: a52591410065db25617c4de2e722896b644cd8ef
Supporting SG_IO commands pass though,
introduce a new device type 'lun'
to keep pace with libvirt.
(crobinso: Add Chen to AUTHORS, whitespace tweak)
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
Index: virtinst-0.600.3/AUTHORS
===================================================================
--- virtinst-0.600.3.orig/AUTHORS
+++ virtinst-0.600.3/AUTHORS
@@ -65,6 +65,7 @@ Patches also received from
Guannan Ren <gren-at-redhat-dot-com>
Qing Lin <qinglbj-at-linux-dot-vnet-dot-ibm-dot-com>
Yuri Chornoivan <yurchor-at-ukr-dot-net>
+ Chen Hanxiao <chenhanxiao-at-cn-dot-fujitsu-dot-com>
...send patches and get your name here...
Index: virtinst-0.600.3/virtinst/VirtualDisk.py
===================================================================
--- virtinst-0.600.3.orig/virtinst/VirtualDisk.py
+++ virtinst-0.600.3/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"