[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for-2.4 V2 4/9] block/iscsi: store DPOFUA bit from t
From: |
Peter Lieven |
Subject: |
[Qemu-devel] [PATCH for-2.4 V2 4/9] block/iscsi: store DPOFUA bit from the modesense command |
Date: |
Thu, 16 Apr 2015 16:08:28 +0200 |
Signed-off-by: Peter Lieven <address@hidden>
---
block/iscsi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/block/iscsi.c b/block/iscsi.c
index 221c9fc..237faa1 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -66,6 +66,7 @@ typedef struct IscsiLun {
bool write_protected;
bool lbpme;
bool lbprz;
+ bool dpofua;
bool has_write_same;
} IscsiLun;
@@ -1258,6 +1259,7 @@ static void iscsi_modesense_sync(IscsiLun *iscsilun)
struct scsi_task *task;
struct scsi_mode_sense *ms = NULL;
iscsilun->write_protected = false;
+ iscsilun->dpofua = false;
task = iscsi_modesense6_sync(iscsilun->iscsi, iscsilun->lun,
1, SCSI_MODESENSE_PC_CURRENT,
@@ -1279,6 +1281,7 @@ static void iscsi_modesense_sync(IscsiLun *iscsilun)
goto out;
}
iscsilun->write_protected = ms->device_specific_parameter & 0x80;
+ iscsilun->dpofua = ms->device_specific_parameter & 0x10;
out:
if (task) {
--
1.9.1
- [Qemu-devel] [PATCH for-2.4 V2 0/9] various improvements for the iSCSI driver, Peter Lieven, 2015/04/16
- [Qemu-devel] [PATCH for-2.4 V2 4/9] block/iscsi: store DPOFUA bit from the modesense command,
Peter Lieven <=
- [Qemu-devel] [PATCH for-2.4 V2 2/9] block/iscsi: change all iscsilun properties from uint8_t to bool, Peter Lieven, 2015/04/16
- [Qemu-devel] [PATCH for-2.4 V2 3/9] block/iscsi: rename iscsi_write_protected and let it return void, Peter Lieven, 2015/04/16
- [Qemu-devel] [PATCH for-2.4 V2 1/9] block/iscsi: do not forget to logout from target, Peter Lieven, 2015/04/16
- [Qemu-devel] [PATCH for-2.4 V2 8/9] block/iscsi: bump year in copyright notice, Peter Lieven, 2015/04/16
- [Qemu-devel] [PATCH for-2.4 V2 5/9] block/iscsi: optimize WRITE10/16 if cache.writeback is not set, Peter Lieven, 2015/04/16
- [Qemu-devel] [PATCH for-2.4 V2 9/9] block/iscsi: use the allocationmap also if cache.direct=on, Peter Lieven, 2015/04/16
- [Qemu-devel] [PATCH for-2.4 V2 6/9] block/iscsi: increase retry count, Peter Lieven, 2015/04/16
- [Qemu-devel] [PATCH for-2.4 V2 7/9] block/iscsi: handle SCSI_STATUS_TASK_SET_FULL, Peter Lieven, 2015/04/16
- Re: [Qemu-devel] [Qemu-block] [PATCH for-2.4 V2 0/9] various improvements for the iSCSI driver, Stefan Hajnoczi, 2015/04/23