TESTS: move the default url, lun and iscsi context into a structure
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -123,7 +123,7 @@ verify_persistent_reserve_access(struct iscsi_context *iscsi1, int lun1,
|
||||
void
|
||||
test_prout_reserve_access_ea(void)
|
||||
{
|
||||
verify_persistent_reserve_access(iscsic, tgt_lun, iscsic2, tgt_lun2,
|
||||
verify_persistent_reserve_access(sd->iscsi_ctx, sd->iscsi_lun, iscsic2, tgt_lun2,
|
||||
SCSI_PERSISTENT_RESERVE_TYPE_EXCLUSIVE_ACCESS,
|
||||
0, 0, 0, 0);
|
||||
}
|
||||
@@ -131,7 +131,7 @@ test_prout_reserve_access_ea(void)
|
||||
void
|
||||
test_prout_reserve_access_we(void)
|
||||
{
|
||||
verify_persistent_reserve_access(iscsic, tgt_lun, iscsic2, tgt_lun2,
|
||||
verify_persistent_reserve_access(sd->iscsi_ctx, sd->iscsi_lun, iscsic2, tgt_lun2,
|
||||
SCSI_PERSISTENT_RESERVE_TYPE_WRITE_EXCLUSIVE,
|
||||
1, 0, 1, 0);
|
||||
}
|
||||
@@ -139,7 +139,7 @@ test_prout_reserve_access_we(void)
|
||||
void
|
||||
test_prout_reserve_access_earo(void)
|
||||
{
|
||||
verify_persistent_reserve_access(iscsic, tgt_lun, iscsic2, tgt_lun2,
|
||||
verify_persistent_reserve_access(sd->iscsi_ctx, sd->iscsi_lun, iscsic2, tgt_lun2,
|
||||
SCSI_PERSISTENT_RESERVE_TYPE_EXCLUSIVE_ACCESS_REGISTRANTS_ONLY,
|
||||
1, 1, 0, 0);
|
||||
}
|
||||
@@ -147,7 +147,7 @@ test_prout_reserve_access_earo(void)
|
||||
void
|
||||
test_prout_reserve_access_wero(void)
|
||||
{
|
||||
verify_persistent_reserve_access(iscsic, tgt_lun, iscsic2, tgt_lun2,
|
||||
verify_persistent_reserve_access(sd->iscsi_ctx, sd->iscsi_lun, iscsic2, tgt_lun2,
|
||||
SCSI_PERSISTENT_RESERVE_TYPE_WRITE_EXCLUSIVE_REGISTRANTS_ONLY,
|
||||
1, 1, 1, 0);
|
||||
}
|
||||
@@ -155,7 +155,7 @@ test_prout_reserve_access_wero(void)
|
||||
void
|
||||
test_prout_reserve_access_eaar(void)
|
||||
{
|
||||
verify_persistent_reserve_access(iscsic, tgt_lun, iscsic2, tgt_lun2,
|
||||
verify_persistent_reserve_access(sd->iscsi_ctx, sd->iscsi_lun, iscsic2, tgt_lun2,
|
||||
SCSI_PERSISTENT_RESERVE_TYPE_EXCLUSIVE_ACCESS_ALL_REGISTRANTS,
|
||||
1, 1, 0, 0);
|
||||
}
|
||||
@@ -163,7 +163,7 @@ test_prout_reserve_access_eaar(void)
|
||||
void
|
||||
test_prout_reserve_access_wear(void)
|
||||
{
|
||||
verify_persistent_reserve_access(iscsic, tgt_lun, iscsic2, tgt_lun2,
|
||||
verify_persistent_reserve_access(sd->iscsi_ctx, sd->iscsi_lun, iscsic2, tgt_lun2,
|
||||
SCSI_PERSISTENT_RESERVE_TYPE_WRITE_EXCLUSIVE_ALL_REGISTRANTS,
|
||||
1, 1, 1, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user