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:
@@ -43,11 +43,12 @@ int test_teardown_pgr(void);
|
||||
void test_get_lba_status_simple(void);
|
||||
void test_get_lba_status_beyond_eol(void);
|
||||
|
||||
void test_inquiry_standard(void);
|
||||
void test_inquiry_alloc_length(void);
|
||||
void test_inquiry_block_limits(void);
|
||||
void test_inquiry_evpd(void);
|
||||
void test_inquiry_supported_vpd(void);
|
||||
void test_inquiry_mandatory_vpd_sbc(void);
|
||||
void test_inquiry_standard(void);
|
||||
void test_inquiry_supported_vpd(void);
|
||||
void test_inquiry_version_descriptors(void);
|
||||
|
||||
void test_iscsi_cmdsn_toohigh(void);
|
||||
|
||||
Reference in New Issue
Block a user