Here's a complete test for the XFS buf I/O error race problem reported
by Alex. An incomplete rfc of this test was previously posted here:
This version utilizes the recently posted log recovery delay mechanism.
As such, this test only runs on kernels compiled with XFS debug support.
The first patch updates the generic require sysfs helper to support
global (i.e., non-device specific) sysfs attributes.
- Use the log recovery delay mechanism to coordinate I/O failures with
Brian Foster (2):
xfstests/common: don't assume sysfs attrs all reside under test dev
xfs/051: test buffer use after free race on I/O failure in XFS log
common/rc | 3 +-
tests/xfs/011 | 2 +-
tests/xfs/051 | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
tests/xfs/051.out | 2 ++
tests/xfs/group | 1 +
5 files changed, 100 insertions(+), 3 deletions(-)
create mode 100755 tests/xfs/051
create mode 100644 tests/xfs/051.out