Oddbean new post about | logout
 [$] Tracing the source of filesystem errors

There are lots of places in the kernel where an EINVAL can be
returned to user space, but it is often unclear what the actual underlying
problem is because the https://man7.org/linux/man-pages/man3/errno.3.html

error codes are too generic.  That is the problem that Miklos Szeredi
wanted to discuss in a filesystem session that he led remotely at the 2024 <a href="https://events.linuxfoundation.org/lsfmmbpf/" rel="nofollow">Linux Storage,
Filesystem, Memory Management, and BPF Summit</a>.  He would like to help
those who are trying to debug problems trace where in the kernel a
particular error code is being generated.

https://lwn.net/Articles/984556/