[PATCH 4/8] generic/{482,757}: skip test if there are no FUA writes

Darrick J. Wong
2025-10-15T16:37:46Z

From: Darrick J. Wong <djwong@kernel.org>

Both of these tests fail if the filesystem doesn't issue a FUA write to
a device, but ... there's no requirement that filesystems actually use
FUA at all. For example, a fuse filesystem that writes to the block
device's page cache and issues fsync() will not cause the block layer to
issue FUA writes for the dirty pages. Change that to _notrun.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
tests/generic/482 | 2 +-
tests/generic/757 | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/generic/482 b/tests/generic/482
index 8c114ee03058c6..25e05d7cdb1c0d 100755
--- a/tests/generic/482
+++ b/tests/generic/482
@@ -82,7 +82,7 @@ _log_writes_remove
prev=$(_log_writes_mark_to_entry_number mkfs)
[ -z "$prev" ] && _fail "failed to locate entry mark 'mkfs'"
cur=$(_log_writes_find_next_fua $prev)
-[ -z "$cur" ] && _fail "failed to locate next FUA write"
+[ -z "$cur" ] && _notrun "failed to locate next FUA write"

while [ ! -z "$cur" ]; do
_log_writes_replay_log_range $cur $DMTHIN_VOL_DEV >> $seqres.full
diff --git a/tests/generic/757 b/tests/generic/757
index 6c13c6af41c57c..725f3a5cc6da3a 100755
--- a/tests/generic/757
+++ b/tests/generic/757
@@ -71,7 +71,7 @@ _log_writes_remove
prev=$(_log_writes_mark_to_entry_number mkfs)
[ -z "$prev" ] && _fail "failed to locate entry mark 'mkfs'"
cur=$(_log_writes_find_next_fua $prev)
-[ -z "$cur" ] && _fail "failed to locate next FUA write"
+[ -z "$cur" ] && _notrun "failed to locate next FUA write"

while _soak_loop_running $((100 * TIME_FACTOR)); do
_log_writes_replay_log_range $cur $DMTHIN_VOL_DEV >> $seqres.full