[PATCH blktests v2] nvme/039: check for logical block size of test device
Shinichiro Kawasaki
shinichiro.kawasaki at wdc.com
Wed Nov 27 17:03:03 PST 2024
On Nov 25, 2024 / 14:39, Bryan Gurney wrote:
> 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 <bgurney at redhat.com>
I applied it, thanks!
More information about the Linux-nvme
mailing list