From patchwork Fri Oct 11 07:59:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Lieven X-Patchwork-Id: 282548 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4D81A2C00C3 for ; Fri, 11 Oct 2013 19:00:51 +1100 (EST) Received: from localhost ([::1]:52953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUXeT-0005mV-7i for incoming@patchwork.ozlabs.org; Fri, 11 Oct 2013 04:00:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUXdy-0005mN-7C for qemu-devel@nongnu.org; Fri, 11 Oct 2013 04:00:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUXds-0004KP-Ma for qemu-devel@nongnu.org; Fri, 11 Oct 2013 04:00:18 -0400 Received: from mx.ipv6.kamp.de ([2a02:248:0:51::16]:38885 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUXds-0004K4-AE for qemu-devel@nongnu.org; Fri, 11 Oct 2013 04:00:12 -0400 Received: (qmail 15949 invoked by uid 89); 11 Oct 2013 08:00:10 -0000 Received: from [82.141.1.145] by client-16-kamp (envelope-from , uid 89) with qmail-scanner-2010/03/19-MF (clamdscan: 0.98/17955. hbedv: 8.2.12.128/7.11.107.0. spamassassin: 3.3.1. Clear:RC:1(82.141.1.145):SA:0(-1.2/5.0):. Processed in 1.096545 secs); 11 Oct 2013 08:00:10 -0000 Received: from ns.kamp-intra.net (HELO dns.kamp-intra.net) ([82.141.1.145]) by mx01.kamp.de with SMTP; 11 Oct 2013 08:00:09 -0000 X-GL_Whitelist: yes Received: from lieven-pc.kamp-intra.net (lieven-pc.kamp-intra.net [172.21.12.60]) by dns.kamp-intra.net (Postfix) with ESMTP id 06F6720688; Fri, 11 Oct 2013 09:59:29 +0200 (CEST) Received: by lieven-pc.kamp-intra.net (Postfix, from userid 1000) id A88095FA39; Fri, 11 Oct 2013 09:59:35 +0200 (CEST) From: Peter Lieven To: qemu-devel@nongnu.org Date: Fri, 11 Oct 2013 09:59:29 +0200 Message-Id: <1381478369-31023-1-git-send-email-pl@kamp.de> X-Mailer: git-send-email 1.7.9.5 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a02:248:0:51::16 Cc: kwolf@redhat.com, pbonzini@redhat.com, Peter Lieven , ronniesahlberg@gmail.com, stefanha@redhat.com Subject: [Qemu-devel] [PATCH] block/iscsi: remove .bdrv_has_zero_init X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org since commit 3ac21627 the default value changed to 0. Signed-off-by: Peter Lieven Reviewed-by: Kevin Wolf --- block/iscsi.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index a2a961e..a660a1c 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -1447,11 +1447,6 @@ static int iscsi_truncate(BlockDriverState *bs, int64_t offset) return 0; } -static int iscsi_has_zero_init(BlockDriverState *bs) -{ - return 0; -} - static int iscsi_create(const char *filename, QEMUOptionParameter *options, Error **errp) { @@ -1538,8 +1533,6 @@ static BlockDriver bdrv_iscsi = { .bdrv_aio_writev = iscsi_aio_writev, .bdrv_aio_flush = iscsi_aio_flush, - .bdrv_has_zero_init = iscsi_has_zero_init, - #ifdef __linux__ .bdrv_ioctl = iscsi_ioctl, .bdrv_aio_ioctl = iscsi_aio_ioctl,