TESTS: Add a test to start verifying that the BlockLimits VPD page is correct.

Verify that the page length matches up with the size of the data in buffer.
Verify that page length is 0x3c if the device claims SBC-3,  and 0x0c if not.

If the device claims SBC-3 and if it claims UNMAP support (LBPU)
then we check that both MAXIMUM UNMAP LBA COUNT and
MAXIMUM UNMAP BLOCK DESCRIPTOR COUNT looks sane.
Sane here means >0, <1M or 0xffffffff

If the device claims SBC-3 and if it does not claim UNMAP support (LBPU)
then we check that both MAXIMUM UNMAP LBA COUNT and
MAXIMUM UNMAP BLOCK DESCRIPTOR COUNT are both 0.
This commit is contained in:
Ronnie Sahlberg
2013-05-12 18:43:43 -07:00
parent 704e0f6448
commit d166d27ab8
4 changed files with 167 additions and 5 deletions

View File

@@ -189,11 +189,12 @@ bin_iscsi_test_cu_SOURCES = test-tool/iscsi-test-cu.c \
test-tool/iscsi-support.c \
test-tool/test_get_lba_status_simple.c \
test-tool/test_get_lba_status_beyond_eol.c \
test-tool/test_inquiry_standard.c \
test-tool/test_inquiry_alloc_length.c \
test-tool/test_inquiry_block_limits.c \
test-tool/test_inquiry_evpd.c \
test-tool/test_inquiry_supported_vpd.c \
test-tool/test_inquiry_mandatory_vpd_sbc.c \
test-tool/test_inquiry_standard.c \
test-tool/test_inquiry_supported_vpd.c \
test-tool/test_inquiry_version_descriptors.c \
test-tool/test_iscsi_cmdsn_toohigh.c \
test-tool/test_iscsi_cmdsn_toolow.c \