TESTS: Change all tests to use 'block_size' instead of hardcoded 512

This should allow the testst to work corectly on block devices with 4k blocksize too.
This commit is contained in:
Ronnie Sahlberg
2012-09-03 08:58:56 -07:00
parent 5639b92d95
commit 77fc2497f7
46 changed files with 197 additions and 95 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ int T0224_write16_beyondeol(const char *initiator, const char *url, int data_los
int ret, i, lun;
uint32_t block_size;
uint64_t num_blocks;
unsigned char data[258 * 512];
unsigned char data[4096 * 258];
printf("0224_write16_beyond_eol:\n");
printf("=======================\n");