On Thu, Aug 15, 2019 at 1:05 PM Darrick J. Wong <darrick.w...@oracle.com> wrote: > > FWIW I've wondered off and on if the VFS syscalls should be generating > some kind of audit trail when something returns an error message to > userspace?
I don't think it makes sense for any random errors. ENOENT / EPERM / EACCES / EISDIR etc are generally part of normal operation and expected. Things like actual filesystem corruption is different, but we haven't really had good patterns for it. And I'd hate to add something like a test for -EFSCORRUPTED when it's so rare. It makes more sense to do any special handling when that is actually detected (when you might want to do other things too, like make the filesystem be read-only or whatever) Linus