Hi all, Linus requested that I audit the XFS code base to make sure that we always log something to dmesg when returning EFSCORRUPTED or EFSBADCRC to userspace. These patches are the results of that audit. The first three patches start by refactoring a few helper methods so that in the third patch we always report something to dmesg whenever we decide to return EFSCORRUPTED. If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This has been lightly tested with fstests. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=report-corruption