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,14 +20,26 @@
|
||||
#include "scsi-lowlevel.h"
|
||||
#include "iscsi-test.h"
|
||||
|
||||
int T0212_read12_flags(const char *initiator, const char *url)
|
||||
int T0212_read12_flags(const char *initiator, const char *url, int data_loss _U_, int show_info)
|
||||
{
|
||||
struct iscsi_context *iscsi;
|
||||
struct scsi_task *task;
|
||||
struct scsi_readcapacity16 *rc16;
|
||||
int ret = 0, i, lun;
|
||||
int ret = 0, lun;
|
||||
uint32_t block_size;
|
||||
|
||||
printf("0212_read12_flags:\n");
|
||||
printf("==================\n");
|
||||
if (show_info) {
|
||||
printf("Test how READ12 handles the flag bits\n");
|
||||
printf("1, Reading with DPO should work\n");
|
||||
printf("2, Reading with FUA should work\n");
|
||||
printf("3, Reading with FUA_NV should work\n");
|
||||
printf("4, Reading with FUA+FUA_NV should work\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