Merge pull request #80 from sitsofe/initiator2
Fix incorrect second initiator
This commit is contained in:
@@ -48,7 +48,7 @@ test_preventallow_2_itnexuses(void)
|
|||||||
CU_ASSERT_EQUAL(ret, 0);
|
CU_ASSERT_EQUAL(ret, 0);
|
||||||
|
|
||||||
logging(LOG_VERBOSE, "Create a second connection to the target");
|
logging(LOG_VERBOSE, "Create a second connection to the target");
|
||||||
iscsic2 = iscsi_context_login(initiatorname1, tgt_url, &tgt_lun);
|
iscsic2 = iscsi_context_login(initiatorname2, tgt_url, &tgt_lun);
|
||||||
if (iscsic2 == NULL) {
|
if (iscsic2 == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ test_reserve6_itnexus_loss(void)
|
|||||||
|
|
||||||
|
|
||||||
logging(LOG_VERBOSE, "Create a second connection to the target");
|
logging(LOG_VERBOSE, "Create a second connection to the target");
|
||||||
iscsic2 = iscsi_context_login(initiatorname1, tgt_url, &tgt_lun);
|
iscsic2 = iscsi_context_login(initiatorname2, tgt_url, &tgt_lun);
|
||||||
if (iscsic2 == NULL) {
|
if (iscsic2 == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ test_reserve6_logout(void)
|
|||||||
|
|
||||||
|
|
||||||
logging(LOG_VERBOSE, "Create a second connection to the target");
|
logging(LOG_VERBOSE, "Create a second connection to the target");
|
||||||
iscsic2 = iscsi_context_login(initiatorname1, tgt_url, &tgt_lun);
|
iscsic2 = iscsi_context_login(initiatorname2, tgt_url, &tgt_lun);
|
||||||
if (iscsic2 == NULL) {
|
if (iscsic2 == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ test_reserve6_lun_reset(void)
|
|||||||
|
|
||||||
|
|
||||||
logging(LOG_VERBOSE, "Create a second connection to the target");
|
logging(LOG_VERBOSE, "Create a second connection to the target");
|
||||||
iscsic2 = iscsi_context_login(initiatorname1, tgt_url, &tgt_lun);
|
iscsic2 = iscsi_context_login(initiatorname2, tgt_url, &tgt_lun);
|
||||||
if (iscsic2 == NULL) {
|
if (iscsic2 == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ test_reserve6_target_cold_reset(void)
|
|||||||
sleep(3);
|
sleep(3);
|
||||||
|
|
||||||
logging(LOG_VERBOSE, "Create a second connection to the target");
|
logging(LOG_VERBOSE, "Create a second connection to the target");
|
||||||
iscsic2 = iscsi_context_login(initiatorname1, tgt_url, &tgt_lun);
|
iscsic2 = iscsi_context_login(initiatorname2, tgt_url, &tgt_lun);
|
||||||
if (iscsic2 == NULL) {
|
if (iscsic2 == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ test_reserve6_target_warm_reset(void)
|
|||||||
|
|
||||||
|
|
||||||
logging(LOG_VERBOSE, "Create a second connection to the target");
|
logging(LOG_VERBOSE, "Create a second connection to the target");
|
||||||
iscsic2 = iscsi_context_login(initiatorname1, tgt_url, &tgt_lun);
|
iscsic2 = iscsi_context_login(initiatorname2, tgt_url, &tgt_lun);
|
||||||
if (iscsic2 == NULL) {
|
if (iscsic2 == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ test_sanitize_readonly(void)
|
|||||||
CHECK_FOR_DATALOSS;
|
CHECK_FOR_DATALOSS;
|
||||||
|
|
||||||
logging(LOG_VERBOSE, "Create a second connection to the target");
|
logging(LOG_VERBOSE, "Create a second connection to the target");
|
||||||
iscsic2 = iscsi_context_login(initiatorname1, tgt_url, &tgt_lun);
|
iscsic2 = iscsi_context_login(initiatorname2, tgt_url, &tgt_lun);
|
||||||
if (iscsic2 == NULL) {
|
if (iscsic2 == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ test_sanitize_reservations(void)
|
|||||||
CHECK_FOR_DATALOSS;
|
CHECK_FOR_DATALOSS;
|
||||||
|
|
||||||
logging(LOG_VERBOSE, "Create a second connection to the target");
|
logging(LOG_VERBOSE, "Create a second connection to the target");
|
||||||
iscsic2 = iscsi_context_login(initiatorname1, tgt_url, &tgt_lun);
|
iscsic2 = iscsi_context_login(initiatorname2, tgt_url, &tgt_lun);
|
||||||
if (iscsic2 == NULL) {
|
if (iscsic2 == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user