nvmecompliance/tnvme — pull request #19 by mbogochow (2014-11-05 14:49:20+00:00)
Title: Grp nvm dataset mgmt cmd nuse

Changed so that the timeout for deallocating the LBAs on the device for test GrpNVMDatasetMgmtCmd verifyNUSE_r10b is calculated based on the capacity of the namespace instead of a hardcoded value of 10s. This will allow very high capacity devices (ex. multiple TB) to finish this test before timing out.

The calculations are done by dividing the capacity of the device by some fixed rate of deallocation. 1.6e8 bytes per ms is the rate chosen as this was the rate for the test controller to perform the test in experiments but this value can be changed to meet the actual rate of the device under test. 10 seconds is then added to the calculation to help guarantee the device will have time to finish.