test-tool, residuals: Rename struct residuals_test_data members

Bring the names of these struture members closer to the names used in the
SCSI and iSCSI standards.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
Bart Van Assche
2021-02-08 17:21:21 -08:00
parent 88a46a03d3
commit 0c304f0c3c
5 changed files with 125 additions and 47 deletions

View File

@@ -20,21 +20,24 @@
#include <stddef.h>
#include <stdbool.h>
#include "scsi-lowlevel.h"
struct residuals_test_data {
size_t cdb_size; /* The size of CDB in bytes */
size_t cdb_size; /* CDB size in bytes */
unsigned int xfer_len; /* The number of logical blocks of
data that shall be transferred */
/*
* Value of the CDB TRANSFER LENGTH field. The unit of this field is one
* logical block.
*/
unsigned int xfer_len;
unsigned int buf_len; /* Expected Data Transfer Length */
unsigned int buf_len; /* Expected Data Transfer Length in bytes. */
unsigned int residuals_kind; /* Overflow or Underflow as in
enum scsi_residual */
enum scsi_residual residual_type; /* SCSI_RESIDUAL_UNDERFLOW or OVERFLOW */
size_t residuals_amount; /* The amount of residual data in bytes */
size_t residual; /* Number of residual bytes */
const char *log_messages; /* Test case description */
const char *description; /* Test case description */
};
struct task_status {