[PATCH] nvme: translate zns errors to blk_status_t

Christoph Hellwig hch at lst.de
Tue Sep 15 02:24:20 EDT 2020


On Tue, Sep 15, 2020 at 04:44:21AM +0900, Keith Busch wrote:
> > Yes, you need to pick a new error.  I don't really care which one,
> > most of the mappings are pretty odd anyway.
> 
> Selecting an existing unused errno feels a bit arbitrary for a status
> that is currently specific to NVMe ZNS. Could you provide a little more
> guidance on what you're looking for?

As said before: most of the errno mappins are pretty arbitrary, e.g.
take a look at the -ENOLINK, -EREMOTEIO, -EBADE, -ENODATA, -EILSEQ,
or -EREMCHG mappings.

So I think just picking a value like ECHRNG or EBADSLT or EUSERS
should be perfectly fine.



More information about the Linux-nvme mailing list