]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/455: skip the test if the file system doesn't support journaling
authorTheodore Ts'o <tytso@mit.edu>
Tue, 11 Jun 2024 22:26:59 +0000 (18:26 -0400)
committerZorro Lang <zlang@kernel.org>
Fri, 21 Jun 2024 16:38:24 +0000 (00:38 +0800)
This test uses dm-log-writes to test power fail scenarios, so it won't
work if the file system doesn't support metadata journaling.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/455

index da803de08feee7ce7c73d4b0eb1fe013cabdd321..6dce8a659c4639cc896df3d93c012303b560140b 100755 (executable)
@@ -65,6 +65,9 @@ _log_writes_init $DMTHIN_VOL_DEV
 
 _log_writes_mkfs >> $seqres.full 2>&1
 
+# This test requires metadata journaling since it simulates a power failure
+_require_metadata_journaling "$LOGWRITES_DMDEV"
+
 # Log writes emulates discard support, turn it on for maximum crying.
 _log_writes_mount -o discard