TEST: Add test for the protection information setting in READCAPACITY16

If the device does not support PI (INQ->PROTECT) then
verify that PROT_EN, P_TYPE and P_I_EXP are all zero.

If the device does support PI and IF PROT_EN is clear
then verify that both P_TYPE and P_I_EXP are zero.

If the device does support PI and IF PROT_EN is set
then verify that P_TYPE is 0, 1 or 2
This commit is contained in:
Ronnie Sahlberg
2013-05-13 20:03:56 -07:00
parent f9fb1e0ee3
commit f49a1beb16
4 changed files with 117 additions and 2 deletions

View File

@@ -251,8 +251,9 @@ bin_iscsi_test_cu_SOURCES = test-tool/iscsi-test-cu.c \
test-tool/test_read16_flags.c \
test-tool/test_read16_residuals.c \
test-tool/test_readcapacity10_simple.c \
test-tool/test_readcapacity16_simple.c \
test-tool/test_readcapacity16_alloclen.c \
test-tool/test_readcapacity16_protection.c \
test-tool/test_readcapacity16_simple.c \
test-tool/test_readonly_sbc.c \
test-tool/test_reserve6_simple.c \
test-tool/test_reserve6_2initiators.c \