Merge pull request #318 from neutronsharc/pr

specify number of blocks in write_same command
This commit is contained in:
Bart Van Assche
2020-03-03 18:18:44 -08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -53,9 +53,11 @@ test_writesame10_unmap_until_end(void)
i * block_size, block_size, 0, 0, 0, 0, 0, scratch,
EXPECT_STATUS_GOOD);
// write 0-buffer to entire range.
memset(scratch, 0, block_size * i);
logging(LOG_VERBOSE, "Unmap %d blocks using WRITESAME10", i);
WRITESAME10(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) {

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) {