From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUXNl-0006Xc-Uq for qemu-devel@nongnu.org; Fri, 11 Oct 2013 03:43:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUXNf-0006Pa-Vq for qemu-devel@nongnu.org; Fri, 11 Oct 2013 03:43:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUXNf-0006PU-NW for qemu-devel@nongnu.org; Fri, 11 Oct 2013 03:43:27 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9B7hRPr011001 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 11 Oct 2013 03:43:27 -0400 From: Fam Zheng Date: Fri, 11 Oct 2013 15:43:21 +0800 Message-Id: <1381477403-25759-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v3 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. v3: Update qemu-iotests. 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 ++++++++++++++++++++++++--------------------- tests/qemu-iotests/059 | 4 ++ tests/qemu-iotests/059.out | 10 ++-- 3 files changed, 75 insertions(+), 59 deletions(-) -- 1.8.3.1