Received: from eggs.gnu.org ([208.118.235.92]:54677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tr47V-0007Tb-2p for qemu-devel@nongnu.org; Fri, 04 Jan 2013 05:03:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tr47S-0004wa-81 for qemu-devel@nongnu.org; Fri, 04 Jan 2013 05:03:20 -0500 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:60709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tr47R-0004nJ-2J for qemu-devel@nongnu.org; Fri, 04 Jan 2013 05:03:18 -0500 Received: from /spool/local by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 4 Jan 2013 19:58:01 +1000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [9.190.235.21]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 750E92BB004F for ; Fri, 4 Jan 2013 21:02:44 +1100 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r04A2hV659244630 for ; Fri, 4 Jan 2013 21:02:43 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r04A2hSb020012 for ; Fri, 4 Jan 2013 21:02:43 +1100 From: Onkar N Mahajan Content-Type: text/plain; charset="UTF-8" Date: Fri, 04 Jan 2013 15:32:41 +0530 Message-ID: <1357293761.2078.17.camel@oc2826874472.ibm.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] Fix : Enable qemu-img QED image commit support. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Anthony Liguori , Stefan Hajnoczi Running qemu-img commit on QED image gives this message even if the image is never committed. This patch fixes this. Do we need to do any L1, L2 table cleanup here ? I see that cleanup code is commented out in the case of qcow2 (qcow2_make_empty). before patching - # qemu-img commit -f qed ss.qed qemu-img: Image is already committed even before committing the image. after patching - # qemu-img commit -f qed ss.qed Image committed. and image is actually successfully committed. ------------------------------------------------------- Signed-off-by: Onkar N Mahajan/India/IBM --- block/qed.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/qed.c b/block/qed.c index 6c182ca..32f1d53 100644 --- a/block/qed.c +++ b/block/qed.c @@ -695,7 +695,7 @@ static int coroutine_fn bdrv_qed_co_is_allocated(BlockDriverState *bs, static int bdrv_qed_make_empty(BlockDriverState *bs) { - return -ENOTSUP; + return 0; } static BDRVQEDState *acb_to_s(QEDAIOCB *acb) -- 1.7.1 -- Onkar N Mahajan System Software Engineer IBM Linux Technology Center Bangalore - India