From b9692e9db19304dbf6bb9b0b45961941578c0461 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 20 Jun 2012 05:50:28 +0000 Subject: [PATCH] scst: Avoid that WRITE SAME(16) triggers a length mismatch message, e.g.: scst: scst_parse_cmd:780:Warning: expected transfer length 512 for opcode 0x93 (handler vdisk_fileio, target iscsi) doesn't match decoded value 1048576. git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4369 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 9e230292c..4a10df60d 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -558,7 +558,7 @@ static const struct scst_sdbops scst_scsi_op_table[] = { 0, get_trans_len_none}, {0x93, "O O ", "WRITE SAME(16)", SCST_DATA_WRITE, SCST_TRANSFER_LEN_TYPE_FIXED|SCST_WRITE_MEDIUM, - 10, get_trans_len_4}, + 10, get_trans_len_single}, {0x93, " M ", "ERASE(16)", SCST_DATA_NONE, SCST_LONG_TIMEOUT|SCST_WRITE_MEDIUM, 0, get_trans_len_none},