[PATCHSET v9 1/2] fstests: test generic file IO error reporting

Darrick J. Wong
2026-03-10T03:42:16Z

Hi all,

Refactor the iomap file I/O error handling code so that failures are
reported in a generic way to fsnotify. Then connect the XFS health
reporting to the same fsnotify, and now XFS can notify userspace of
problems.

v9: tweak fstests per userspace changes; improve attribution of the
generic fserror test; fix some bugs pointed out by zorro

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

With a bit of luck, this should all go splendidly.
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=filesystem-error-reporting

fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=filesystem-error-reporting
---
Commits in this patchset:
* generic: test fsnotify filesystem error reporting
---
common/rc | 25 ++++++
doc/group-names.txt | 1
src/Makefile | 2
src/fs-monitor.c | 153 ++++++++++++++++++++++++++++++++++
tests/generic/1838 | 214 ++++++++++++++++++++++++++++++++++++++++++++++++
tests/generic/1838.out | 20 ++++
6 files changed, 414 insertions(+), 1 deletion(-)
create mode 100644 src/fs-monitor.c
create mode 100755 tests/generic/1838
create mode 100644 tests/generic/1838.out