Re: [PATCH v9 04/12] nvmet: make nvmet_copy_ns_identifier() non-static

From: Christoph Hellwig
Date: Thu Oct 10 2019 - 07:51:03 EST


On Wed, Oct 09, 2019 at 01:25:21PM -0600, Logan Gunthorpe wrote:
> This function will be needed by the upcoming passthru code.
>
> Passthru will need an emulated version of identify_desclist which
> copies the eui64, uuid and nguid from the passed-thru controller into
> the request SGL.

I don't like the way this is handled. We should avoid faking up
behavior not supported if this really is a passthrough interface.

For this particular case this means:

1) report the vs field that the actual controller reports
2) if that is below 1.2.1 bump it to that, but no further
(and maybe print a warning)
3) don't emulate the namespace descriptor CNS ever