Received: from eggs.gnu.org ([2001:4830:134:3::10]:60793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUFVp-0007j2-JN for qemu-devel@nongnu.org; Thu, 10 Oct 2013 08:38:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUFVj-0002Ja-KY for qemu-devel@nongnu.org; Thu, 10 Oct 2013 08:38:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUFVj-0002JG-DQ for qemu-devel@nongnu.org; Thu, 10 Oct 2013 08:38:35 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9ACcYl3020117 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 10 Oct 2013 08:38:34 -0400 From: Fam Zheng Date: Thu, 10 Oct 2013 20:38:30 +0800 Message-Id: <1381408712-21502-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] vmdk: convert error reporting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com The first patch converts "fprintf(stderr,..." to error_setg with errp, and fixes style of error message texts. The second patch checks the compatibility of zeroed_grain flag and flat type and reports error if both are true. v2: [01] More conversion of error messages, also catch error from bdrv_{pread,pwrite} with error_setg_errno. Fam Zheng (2): vmdk: convert error code to use errp vmdk: refuse enabling zeroed grain with flat images block/vmdk.c | 120 ++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 65 insertions(+), 55 deletions(-) -- 1.8.3.1