TEST-TOOL: Add a --info argument to print more detailed infor what a test does
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -20,15 +20,24 @@
|
||||
#include "scsi-lowlevel.h"
|
||||
#include "iscsi-test.h"
|
||||
|
||||
int T0231_write12_wrprotect(const char *initiator, const char *url)
|
||||
int T0231_write12_wrprotect(const char *initiator, const char *url, int data_loss, int show_info)
|
||||
{
|
||||
struct iscsi_context *iscsi;
|
||||
struct scsi_task *task;
|
||||
struct scsi_readcapacity16 *rc16;
|
||||
int ret = 0, i, lun;
|
||||
uint32_t block_size, num_blocks;
|
||||
uint32_t block_size;
|
||||
unsigned char data[256 * 512];
|
||||
|
||||
printf("0231_write12_wrprotect:\n");
|
||||
printf("======================\n");
|
||||
if (show_info) {
|
||||
printf("Test how WRITE12 handles the wrprotect bits\n");
|
||||
printf("1, Any non-zero valued for wrprotect should fail.\n");
|
||||
printf("\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
iscsi = iscsi_context_login(initiator, url, &lun);
|
||||
if (iscsi == NULL) {
|
||||
printf("Failed to login to target\n");
|
||||
|
||||
Reference in New Issue
Block a user