[PATCH-4.7 1/3] NVMe: Return ENODEV error on invalid namespace
Busch, Keith
keith.busch at intel.com
Tue May 3 07:19:28 PDT 2016
> -----Original Message-----
> From: Christoph Hellwig [mailto:hch at infradead.org]
> Sent: Tuesday, May 03, 2016 1:58 AM
> To: Busch, Keith
> Cc: Jens Axboe; Christoph Hellwig; linux-nvme at lists.infradead.org
> Subject: Re: [PATCH-4.7 1/3] NVMe: Return ENODEV error on invalid namespace
>
> On Mon, May 02, 2016 at 11:12:06AM -0600, Keith Busch wrote:
> > If there is no namespace associated with the request, return an error
> > code that notifies the application the device isn't there.
>
> I think we're heading in the wrong direction here. I actually had some
> discussion with Jens and Marting on how we should get rid of overloading
> random errnos in the block layer and instead have block layer error
> codes.
>
> What applications care? And where are the meanings of these error
> codes documented?
This was added at the joint request from one OSV and IHV. I've no idea what they're software is doing with this, but they say it doesn't do the right thing with 'EIO'. ENODEV for invalid namespaces sounded like a reasonable error.
More information about the Linux-nvme
mailing list