From c522f2448ddd8d36f83dffb236b1855c6ad53036 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 9 Feb 2021 03:37:28 +0000 Subject: [PATCH] scst: Increase the maximum READ CAPACITY(16) response buffer size From the libiscsi source code: readcapacity16(sd, &rc16_task, /*alloc_len=*/96, EXPECT_STATUS_GOOD); Hence increase the limit from 32 to 128. Fixes: dd467b0eda12 ("scst: Limit the size of READ CAPACITY buffers") git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9340 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 1f7f78179..bfcec05f7 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -11216,7 +11216,7 @@ static int get_cdb_info_serv_act_in(struct scst_cmd *cmd, SCST_REG_RESERVE_ALLOWED | SCST_WRITE_EXCL_ALLOWED | SCST_EXCL_ACCESS_ALLOWED; - cmd->log2_max_buf_len = 5; + cmd->log2_max_buf_len = 7; break; case SAI_GET_LBA_STATUS: cmd->op_name = "GET LBA STATUS";