specify number of blocks in write_same command

If "number of blocks" is 0, write_same will not erase the LBA range and
read-verify will fail.
This commit is contained in:
shawn
2020-02-17 17:13:03 -08:00
parent 66e5af9422
commit dfff7e9d16
2 changed files with 4 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ test_writesame16_unmap_until_end(void)
logging(LOG_VERBOSE, "Unmap %d blocks using WRITESAME16", i);
memset(scratch, 0, block_size);
WRITESAME16(sd, num_blocks - i,
block_size, 0, 0, 1, 0, 0, scratch,
block_size, i, 0, 1, 0, 0, scratch,
EXPECT_STATUS_GOOD);
if (rc16->lbprz) {