TESTS: Fix COMPAREANDWRITE tests to send write data
Previously COMPAREANDWRITE was only sending verify instance data which can cause targets to generate COMMAND ABORTED/NOT ENOUGH UNSOLICITED DATA errors due to the buffer being obviously too small to contain verify AND write instance data. The buffer size check has been modified and compareandwrite tests updated to pass a larger buffer with interesting write instance data.
This commit is contained in:
@@ -1802,7 +1802,7 @@ scsi_cdb_compareandwrite(uint64_t lba, uint32_t xferlen, int blocksize, int wrpr
|
||||
|
||||
scsi_set_uint32(&task->cdb[2], lba >> 32);
|
||||
scsi_set_uint32(&task->cdb[6], lba & 0xffffffff);
|
||||
task->cdb[13] = xferlen/blocksize;
|
||||
task->cdb[13] = xferlen/blocksize/2;
|
||||
|
||||
task->cdb[14] |= (group_number & 0x1f);
|
||||
task->cdb_size = 16;
|
||||
|
||||
Reference in New Issue
Block a user