Received: from [140.186.70.92] (port=35832 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTbpX-0005ag-4K for qemu-devel@nongnu.org; Fri, 17 Dec 2010 10:02:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTbpT-0007fF-GJ for qemu-devel@nongnu.org; Fri, 17 Dec 2010 10:02:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTbpT-0007ep-8l for qemu-devel@nongnu.org; Fri, 17 Dec 2010 10:02:43 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oBHF2gao032402 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 17 Dec 2010 10:02:42 -0500 From: Jes.Sorensen@redhat.com Date: Fri, 17 Dec 2010 16:02:38 +0100 Message-Id: <1292598160-21698-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] qcow2 cleanups List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kwolf@redhat.com Cc: qemu-devel@nongnu.org From: Jes Sorensen Hi, These two patches tries to clean up the qcow2 code a little. First makes the function names consistent, ie. we shouldn't have qcow_ functions in the qcow2 code. Second tries to add proper errno return values to qcow2_open(). New in v2: Fix the bdrv_pread() handling as pointed out by Kevin. Fix error messages, and restore a couple of cases to their unreadable formatting to avoid formatting changes not directly related to the qcow_->qcow2_ rename. Jes Jes Sorensen (2): block/qcow2.c: rename qcow_ functions to qcow2_ Add proper -errno error return values to qcow2_open() block/qcow2-cluster.c | 6 +- block/qcow2-snapshot.c | 6 +- block/qcow2.c | 248 +++++++++++++++++++++++++++--------------------- 3 files changed, 145 insertions(+), 115 deletions(-) -- 1.7.3.3