[PATCH] NVMe: Fix IO for extended metadata formats

Christoph Hellwig hch at lst.de
Mon Jun 22 08:39:00 PDT 2015


On Mon, Jun 22, 2015 at 03:17:07PM +0000, Busch, Keith wrote:
> Similar to SG_IO, we can submit arbitrary length commands using the nvme
> passthrough. It seems to work. Here's a test I did using the "nvme-cli"
> program.

Yeah, I was mostly worried about the request mapping code tripping
up on these unaligned sized.  I don't have a device that supports it
so I couldn't test it myself.

Btw, given your test below:  I had thought for a while to add unit
tests to the nvme-cli package for cases like the one you had below.

The use case would be mostly to verify the driver, less the hardware
unless the two are tangled up or the hardware specific cases are simple
enough.  I've had good succeed with the cunit based SCSI testsuite
in libiscsi, so I could come up with a skeleton for it.



More information about the Linux-nvme mailing list