mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
target: Set response format in INQUIRY response
commit ce136176fe upstream.
Current SCSI specs say that the "response format" field in the standard
INQUIRY response should be set to 2, and all the real SCSI devices I
have do put 2 here. So let's do that too.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7b3e8a2073
commit
640bb6ec4f
@@ -83,6 +83,18 @@ target_emulate_inquiry_std(struct se_cmd *cmd)
|
||||
buf[1] = 0x80;
|
||||
buf[2] = dev->transport->get_device_rev(dev);
|
||||
|
||||
/*
|
||||
* NORMACA and HISUP = 0, RESPONSE DATA FORMAT = 2
|
||||
*
|
||||
* SPC4 says:
|
||||
* A RESPONSE DATA FORMAT field set to 2h indicates that the
|
||||
* standard INQUIRY data is in the format defined in this
|
||||
* standard. Response data format values less than 2h are
|
||||
* obsolete. Response data format values greater than 2h are
|
||||
* reserved.
|
||||
*/
|
||||
buf[3] = 2;
|
||||
|
||||
/*
|
||||
* Enable SCCS and TPGS fields for Emulated ALUA
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user