From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nc0h4-0006f3-Ri for qemu-devel@nongnu.org; Mon, 01 Feb 2010 13:08:14 -0500 Received: from [199.232.76.173] (port=57567 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nc0h3-0006er-Gb for qemu-devel@nongnu.org; Mon, 01 Feb 2010 13:08:13 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nc0h2-0006o7-A6 for qemu-devel@nongnu.org; Mon, 01 Feb 2010 13:08:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47972) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nc0h1-0006np-UB for qemu-devel@nongnu.org; Mon, 01 Feb 2010 13:08:12 -0500 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o11I8AGR008355 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 1 Feb 2010 13:08:11 -0500 From: Luiz Capitulino Date: Mon, 1 Feb 2010 16:07:47 -0200 Message-Id: <1265047668-15039-2-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1265047668-15039-1-git-send-email-lcapitulino@redhat.com> References: <1265047668-15039-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] block: Introduce drive_get_err_action() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com It's really drive_get_on_error()'s current body. This is needed so that the disk error event code can also use the returned action. Signed-off-by: Luiz Capitulino --- vl.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 6f1e1ab..57c439d 100644 --- a/vl.c +++ b/vl.c @@ -1843,7 +1843,7 @@ const char *drive_get_serial(BlockDriverState *bdrv) return "\0"; } -BlockInterfaceErrorAction drive_get_on_error( +static BlockInterfaceErrorAction drive_get_err_action( BlockDriverState *bdrv, int is_read) { DriveInfo *dinfo; @@ -1856,6 +1856,12 @@ BlockInterfaceErrorAction drive_get_on_error( return is_read ? BLOCK_ERR_REPORT : BLOCK_ERR_STOP_ENOSPC; } +BlockInterfaceErrorAction drive_get_on_error( + BlockDriverState *bdrv, int is_read) +{ + return drive_get_err_action(bdrv, is_read); +} + static void bdrv_format_print(void *opaque, const char *name) { fprintf(stderr, " %s", name); -- 1.6.6