yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-block-iscsi-remove-.bdrv_has_zero_init.patch.patch.patch

0a122b
From 81a1f4a5ffab6a20f5fa90c722791e6956999988 Mon Sep 17 00:00:00 2001
0a122b
Message-Id: <81a1f4a5ffab6a20f5fa90c722791e6956999988.1389014116.git.minovotn@redhat.com>
0a122b
In-Reply-To: <c8cc35838d42aa286242772d97e3a9be7bb786ba.1389014116.git.minovotn@redhat.com>
0a122b
References: <c8cc35838d42aa286242772d97e3a9be7bb786ba.1389014116.git.minovotn@redhat.com>
0a122b
From: Paolo Bonzini <pbonzini@redhat.com>
0a122b
Date: Mon, 9 Dec 2013 14:09:20 +0100
0a122b
Subject: [PATCH 32/50] block/iscsi: remove .bdrv_has_zero_init
0a122b
0a122b
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
0a122b
Message-id: <1386598178-11845-35-git-send-email-pbonzini@redhat.com>
0a122b
Patchwork-id: 56071
0a122b
O-Subject: [RHEL 7.0 qemu-kvm PATCH 34/52] block/iscsi: remove .bdrv_has_zero_init
0a122b
Bugzilla: 1007815
0a122b
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
0a122b
RH-Acked-by: Fam Zheng <famz@redhat.com>
0a122b
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
0a122b
From: Peter Lieven <pl@kamp.de>
0a122b
0a122b
since commit 3ac21627 the default value changed to 0.
0a122b
0a122b
Signed-off-by: Peter Lieven <pl@kamp.de>
0a122b
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
(cherry picked from commit 4b52498e62d02a30f780875f54431d1bad0bcabd)
0a122b
---
0a122b
 block/iscsi.c | 7 -------
0a122b
 1 file changed, 7 deletions(-)
0a122b
0a122b
Signed-off-by: Michal Novotny <minovotn@redhat.com>
0a122b
---
0a122b
 block/iscsi.c | 7 -------
0a122b
 1 file changed, 7 deletions(-)
0a122b
0a122b
diff --git a/block/iscsi.c b/block/iscsi.c
0a122b
index 3e3ae64..c5cd86d 100644
0a122b
--- a/block/iscsi.c
0a122b
+++ b/block/iscsi.c
0a122b
@@ -1507,11 +1507,6 @@ static int iscsi_truncate(BlockDriverState *bs, int64_t offset)
0a122b
     return 0;
0a122b
 }
0a122b
 
0a122b
-static int iscsi_has_zero_init(BlockDriverState *bs)
0a122b
-{
0a122b
-    return 0;
0a122b
-}
0a122b
-
0a122b
 static int iscsi_create(const char *filename, QEMUOptionParameter *options,
0a122b
                         Error **errp)
0a122b
 {
0a122b
@@ -1607,8 +1602,6 @@ static BlockDriver bdrv_iscsi = {
0a122b
     .bdrv_aio_writev = iscsi_aio_writev,
0a122b
     .bdrv_aio_flush  = iscsi_aio_flush,
0a122b
 
0a122b
-    .bdrv_has_zero_init = iscsi_has_zero_init,
0a122b
-
0a122b
 #ifdef __linux__
0a122b
     .bdrv_ioctl       = iscsi_ioctl,
0a122b
     .bdrv_aio_ioctl   = iscsi_aio_ioctl,
0a122b
-- 
0a122b
1.7.11.7
0a122b