reserve6 tests: fix login parameters
This commit is contained in:
@@ -54,7 +54,9 @@ 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");
|
||||||
memset(&sd2, 0, sizeof(sd2));
|
memset(&sd2, 0, sizeof(sd2));
|
||||||
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd->iscsi_url, &sd2.iscsi_lun);
|
sd2.iscsi_url = sd->iscsi_url;
|
||||||
|
sd2.iscsi_lun = sd->iscsi_lun;
|
||||||
|
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd2.iscsi_url, &sd2.iscsi_lun);
|
||||||
if (sd2.iscsi_ctx == NULL) {
|
if (sd2.iscsi_ctx == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -54,7 +54,9 @@ test_reserve6_logout(void)
|
|||||||
|
|
||||||
logging(LOG_VERBOSE, "Create a second connection to the target");
|
logging(LOG_VERBOSE, "Create a second connection to the target");
|
||||||
memset(&sd2, 0, sizeof(sd2));
|
memset(&sd2, 0, sizeof(sd2));
|
||||||
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd->iscsi_url, &sd2.iscsi_lun);
|
sd2.iscsi_url = sd->iscsi_url;
|
||||||
|
sd2.iscsi_lun = sd->iscsi_lun;
|
||||||
|
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd2.iscsi_url, &sd2.iscsi_lun);
|
||||||
if (sd2.iscsi_ctx == NULL) {
|
if (sd2.iscsi_ctx == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -65,7 +65,9 @@ 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");
|
||||||
memset(&sd2, 0, sizeof(sd2));
|
memset(&sd2, 0, sizeof(sd2));
|
||||||
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd->iscsi_url, &sd2.iscsi_lun);
|
sd2.iscsi_url = sd->iscsi_url;
|
||||||
|
sd2.iscsi_lun = sd->iscsi_lun;
|
||||||
|
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd2.iscsi_url, &sd2.iscsi_lun);
|
||||||
if (sd2.iscsi_ctx == NULL) {
|
if (sd2.iscsi_ctx == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -65,7 +65,9 @@ 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");
|
||||||
memset(&sd2, 0, sizeof(sd2));
|
memset(&sd2, 0, sizeof(sd2));
|
||||||
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd->iscsi_url, &sd2.iscsi_lun);
|
sd2.iscsi_url = sd->iscsi_url;
|
||||||
|
sd2.iscsi_lun = sd->iscsi_lun;
|
||||||
|
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd2.iscsi_url, &sd2.iscsi_lun);
|
||||||
if (sd2.iscsi_ctx == NULL) {
|
if (sd2.iscsi_ctx == NULL) {
|
||||||
logging(LOG_VERBOSE, "Failed to login to target");
|
logging(LOG_VERBOSE, "Failed to login to target");
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -50,7 +50,9 @@ test_sanitize_reservations(void)
|
|||||||
|
|
||||||
logging(LOG_VERBOSE, "Create a second connection to the target");
|
logging(LOG_VERBOSE, "Create a second connection to the target");
|
||||||
memset(&sd2, 0, sizeof(sd2));
|
memset(&sd2, 0, sizeof(sd2));
|
||||||
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd->iscsi_url, &sd2.iscsi_lun);
|
sd2.iscsi_url = sd->iscsi_url;
|
||||||
|
sd2.iscsi_lun = sd->iscsi_lun;
|
||||||
|
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd2.iscsi_url, &sd2.iscsi_lun);
|
||||||
if (sd2.iscsi_ctx == NULL) {
|
if (sd2.iscsi_ctx == 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