From nobody Sat Dec 21 14:57:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of ovirt.org designates 66.187.230.42 as permitted sender) client-ip=66.187.230.42; envelope-from=kimchi-devel-bounces@ovirt.org; helo=lists.ovirt.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of ovirt.org designates 66.187.230.42 as permitted sender) smtp.mailfrom=kimchi-devel-bounces@ovirt.org; Return-Path: Received: from lists.ovirt.org (lists.phx.ovirt.org [66.187.230.42]) by mx.zohomail.com with SMTPS id 1490052511287759.8009345998863; Mon, 20 Mar 2017 16:28:31 -0700 (PDT) Received: from lists.phx.ovirt.org (localhost [127.0.0.1]) by lists.ovirt.org (Postfix) with ESMTP id 4CB12820671; Mon, 20 Mar 2017 23:28:30 +0000 (UTC) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lists.ovirt.org (Postfix) with ESMTPS id D6BA3820558 for ; Mon, 20 Mar 2017 23:28:05 +0000 (UTC) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v2KNRvmr143649 for ; Mon, 20 Mar 2017 19:28:05 -0400 Received: from e24smtp03.br.ibm.com (e24smtp03.br.ibm.com [32.104.18.24]) by mx0a-001b2d01.pphosted.com with ESMTP id 29aeac0ew4-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 20 Mar 2017 19:28:04 -0400 Received: from localhost by e24smtp03.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 20 Mar 2017 20:28:03 -0300 Received: from d24relay02.br.ibm.com (9.18.232.42) by e24smtp03.br.ibm.com (10.172.0.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 20 Mar 2017 20:28:01 -0300 Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.8.31.97]) by d24relay02.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v2KNS08033423480 for ; Mon, 20 Mar 2017 20:28:01 -0300 Received: from d24av04.br.ibm.com (localhost [127.0.0.1]) by d24av04.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v2KNS0Wm025357 for ; Mon, 20 Mar 2017 20:28:00 -0300 Received: from jarvis.ibmmodules.com ([9.85.180.226]) by d24av04.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v2KNRuZX025337 for ; Mon, 20 Mar 2017 20:27:59 -0300 X-Original-To: kimchi-devel@ovirt.org From: Ramon Medeiros To: Kimchi Devel Date: Mon, 20 Mar 2017 20:27:47 -0300 X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170320232750.31603-1-ramonn@linux.vnet.ibm.com> References: <20170320232750.31603-1-ramonn@linux.vnet.ibm.com> X-TM-AS-MML: disable x-cbid: 17032023-0024-0000-0000-00000160F6BD X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17032023-0025-0000-0000-00001628213A Message-Id: <20170320232750.31603-2-ramonn@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-03-20_18:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703200198 Subject: [Kimchi-devel] [PATCH] [Kimchi 1/4] Read io and cache option from disks X-BeenThere: kimchi-devel@ovirt.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: kimchi-devel-bounces@ovirt.org Errors-To: kimchi-devel-bounces@ovirt.org X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Ramon Medeiros --- 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')} =20 =20 def get_vm_disks(dom): --=20 2.9.3 _______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel