READ10/WRITE10: Change these functions to sue the same signatures as the other READ/WRITE
Harmonize the signatures for READ10/WRITE10 to match the ones for READ12/16 and WRITE12/16 This breaks the API/ABI so this forces the next version of the library to bump the major version to 2.0 Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -75,7 +75,7 @@ int T0100_read10_simple(const char *initiator, const char *url, int data_loss _U
|
||||
/* read the first 1 - 256 blocks at the start of the LUN */
|
||||
printf("Reading first 1-256 blocks ... ");
|
||||
for (i=1; i<=256; i++) {
|
||||
task = iscsi_read10_sync(iscsi, lun, 0, i * block_size, block_size);
|
||||
task = iscsi_read10_sync(iscsi, lun, 0, i * block_size, block_size, 0, 0, 0, 0, 0);
|
||||
if (task == NULL) {
|
||||
printf("[FAILED]\n");
|
||||
printf("Failed to send read10 command: %s\n", iscsi_get_error(iscsi));
|
||||
@@ -97,7 +97,7 @@ int T0100_read10_simple(const char *initiator, const char *url, int data_loss _U
|
||||
/* read the last 1 - 256 blocks at the end of the LUN */
|
||||
printf("Reading last 1-256 blocks ... ");
|
||||
for (i=1; i<=256; i++) {
|
||||
task = iscsi_read10_sync(iscsi, lun, num_blocks +1 - i, i * block_size, block_size);
|
||||
task = iscsi_read10_sync(iscsi, lun, num_blocks +1 - i, i * block_size, block_size, 0, 0, 0, 0, 0);
|
||||
if (task == NULL) {
|
||||
printf("[FAILED]\n");
|
||||
printf("Failed to send read10 command: %s\n", iscsi_get_error(iscsi));
|
||||
|
||||
Reference in New Issue
Block a user