Thread (4 messages) flat view 4 messages, 2 authors, 2024-11-19

Re: [PATCH] uapi: add EROBLK

From: Christoph Hellwig <hch@infradead.org>
Date: 2024-11-19 16:22:09
Also in: linux-block

On Tue, Nov 19, 2024 at 06:54:52PM +0300, Alexey Dobriyan wrote:
Block drivers and DM sometimes use EROFS to report errors. There is
no confusion about what happens but naive error reporting code might
pass -EROFS to strerror(3) which will print "filesystem" when clearly
there is no filesystem anywhere, it is layer above.

Or in other words, if EROFS exists, why not EROBLK?
It is not like there is a tax on errno values.
And where would you return this value without breaking existing
userspace?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help