Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme/039: check for logical block size of test device
This test has hard-coded 512 byte values for the dd commands, which will fail on 4096-byte block devices. Create an LB_SZ global variable that is populated with the result of the command "blockdev --getss <dev>", and use that result for the block size of the write commands. Also use this variable for the "--data-len" command of the "nvme admin-passthru" and "nvme io-passthru" tests. (On a test with a 4096-byte namespace, leaving these with the hardcoded values still passed, but update them for the sake of consistency.) Signed-off-by: Bryan Gurney <[email protected]> Reviewed-by: Alan Adamson <[email protected]> Tested-by: Alan Adamson <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
- Loading branch information