[Kimchi-devel] [PATCH] [Kimchi 1/4] Read io and cache option from disks

Ramon Medeiros ramonn at linux.vnet.ibm.com
Mon Mar 20 23:27:47 UTC 2017


Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
---
 xmlutils/disk.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/xmlutils/disk.py b/xmlutils/disk.py
index 97298c5..76700b9 100644
--- a/xmlutils/disk.py
+++ b/xmlutils/disk.py
@@ -163,7 +163,9 @@ def get_vm_disk_info(dom, dev_name):
             'path': path,
             'type': disk.attrib['device'],
             'format': disk.driver.attrib['type'],
-            'bus': disk.target.attrib['bus']}
+            'bus': disk.target.attrib['bus'],
+            'io': disk.driver.attrib.get('io', 'none'),
+            'cache': disk.driver.attrib.get('cache', 'none')}
 
 
 def get_vm_disks(dom):
-- 
2.9.3



More information about the Kimchi-devel mailing list