test-tool: add prin_read_keys() allocation_len parameter
Accepting an Allocation Length parameter allows us to test for truncation of response data, as per SPC5r17 4.2.5.6: The device server shall terminate transfers to the Data-In Buffer when the number of bytes or blocks specified by the ALLOCATION LENGTH field have been transferred or when all available data have been transferred, whichever is less. With this change, all existing prin_read_keys() callers continue to use same ALLOCATION LENGTH value as earlier (16K). Signed-off-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
@@ -822,7 +822,8 @@ int all_zero(const unsigned char *buf, unsigned size);
|
||||
int prin_task(struct scsi_device *sdev, int service_action,
|
||||
int success_expected);
|
||||
int prin_read_keys(struct scsi_device *sdev, struct scsi_task **tp,
|
||||
struct scsi_persistent_reserve_in_read_keys **rkp);
|
||||
struct scsi_persistent_reserve_in_read_keys **rkp,
|
||||
uint16_t allocation_len);
|
||||
int prout_register_and_ignore(struct scsi_device *sdev,
|
||||
unsigned long long key);
|
||||
int prout_register_key(struct scsi_device *sdev,
|
||||
|
||||
Reference in New Issue
Block a user