Message ID | 20190815171347.GD15186@magnolia (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [GIT,PULL] xfs: fixes for 5.3-rc5 | expand |
Pulled. Just a quick note: On Thu, Aug 15, 2019 at 10:13 AM Darrick J. Wong <djwong@kernel.org> wrote: > > - Convert more directory corruption debugging asserts to actual > EFSCORRUPTED returns instead of blowing up later on. The proper error code looks like an obvious improvement, but I do wonder if there should be some (ratelimited) system logging too? I've seen a lot of programs that don't report errors very clearly and might just silently stop running and as a sysadmin I'd think I'd rather have something in the system logs than users saying "my app crashes at startup"/ Maybe the logging ends up being there already - just done later. It wasn't obvious from the patch, and I didn't check the whole callchain (only direct callers). Linus
The pull request you sent on Thu, 15 Aug 2019 10:13:47 -0700:
> git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-5.3-fixes-2
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/a69e90512d9def6bd8064d84cff9ffd8b15eaa1b
Thank you!
On Thu, Aug 15, 2019 at 12:38:33PM -0700, Linus Torvalds wrote: > Pulled. Just a quick note: > > On Thu, Aug 15, 2019 at 10:13 AM Darrick J. Wong <djwong@kernel.org> wrote: > > > > - Convert more directory corruption debugging asserts to actual > > EFSCORRUPTED returns instead of blowing up later on. > > The proper error code looks like an obvious improvement, but I do > wonder if there should be some (ratelimited) system logging too? > > I've seen a lot of programs that don't report errors very clearly and > might just silently stop running and as a sysadmin I'd think I'd > rather have something in the system logs than users saying "my app > crashes at startup"/ > > Maybe the logging ends up being there already - just done later. It > wasn't obvious from the patch, and I didn't check the whole callchain > (only direct callers). Metadata update failures hitting EFSCORRUPTED will leave a fair amount of spew in dmesg both when we find the corrupt metadata and the update transaction is aborted (which takes the filesystem down). Read errors get logged if we spot an error within a block but aren't consistently logged when we discover problems between separate metadata objects. 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? --D > Linus
On Thu, Aug 15, 2019 at 1:05 PM Darrick J. Wong <darrick.wong@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