DO-NOT-UPSTREAM: btrfs: sysfs force_fs_error, to raise a logical abort on demand
Directed-test instrument for the stripe run retire bail branches
(retire-bail-metaenospc-repro.sh). The bail needs BTRFS_FS_ERROR set by a
task that is not the one parked in the drain, and every natural source of
that is circular: the drain sits inside the transaction commit, so the
commit cannot get to the delayed-ref accounting that would ENOSPC, and
anything trying to raise one from outside blocks in wait_current_trans()
behind that same commit. Device errors do not work either, since an
errored bio still completes and reports its bytes, so the drain settles
rather than bailing.
Under CONFIG_BTRFS_DEBUG only. Carried in topics/dm-stripfault with the
other test fixtures, to be dropped before upstream submission. Originally
written 2026-09-24 for the A/B of the retire bail fixes (
6b98b399d957),
which only ever lived on test branches; without it the directed test has
skipped on both lanes since.
Assisted-by: Claude:claude-opus-5
Assisted-by: Claude:claude-opus-5-5