various fixes
[pve-qemu-kvm.git] / debian / patches / extra / 0008-iscsi-pass-SCSI-status-back-for-SG_IO.patch
blob2acfa619c8612fa05570576a007190946567cd9d
1 From b3d69a0d7dc3945ff134e69593b5fcec447e8389 Mon Sep 17 00:00:00 2001
2 From: Vadim Rozenfeld <vrozenfe@redhat.com>
3 Date: Fri, 13 May 2016 13:03:22 +0200
4 Subject: [PATCH 08/10] iscsi: pass SCSI status back for SG_IO
6 Signed-off-by: Vadim Rozenfeld <vrozenfe@redhat.com>
7 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
8 ---
9 block/iscsi.c | 1 +
10 1 file changed, 1 insertion(+)
12 diff --git a/block/iscsi.c b/block/iscsi.c
13 index 0466c30..1f6a0e5 100644
14 --- a/block/iscsi.c
15 +++ b/block/iscsi.c
16 @@ -768,6 +768,7 @@ iscsi_aio_ioctl_cb(struct iscsi_context *iscsi, int status,
17 acb->ioh->driver_status = 0;
18 acb->ioh->host_status = 0;
19 acb->ioh->resid = 0;
20 + acb->ioh->status = status;
22 #define SG_ERR_DRIVER_SENSE 0x08
24 --
25 2.1.4