From: Luis Henriques (SUSE) Date: Mon, 1 Apr 2024 09:57:08 +0000 (+0100) Subject: ext4/01{2,9}: fix invalid filesystem option 'journal' X-Git-Tag: v2024.04.14~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e024c6f28b8bc8a507aae67e699fffb6cab1fca1;p=xfstests-dev.git ext4/01{2,9}: fix invalid filesystem option 'journal' Creating an ext4 filesystem using '-O journal' will fail with: Invalid filesystem option set: journal Fix it by replacing it by '-O has_journal', which ensures the filesystem (ext3 or ext4) is created with a journal. While there, also redirect stderr and stdout to the full log. Signed-off-by: "Luis Henriques (SUSE)" Reviewed-by: "Darrick J. Wong" Reviewed-by: Theodore Ts'o Signed-off-by: Zorro Lang --- diff --git a/tests/ext4/012 b/tests/ext4/012 index c49e8ef4..358874a1 100755 --- a/tests/ext4/012 +++ b/tests/ext4/012 @@ -32,7 +32,7 @@ TESTDIR="${SCRATCH_MNT}/scratchdir" TESTFILE="${TESTDIR}/testfile" echo "+ create scratch fs" -_scratch_mkfs_ext4 -O journal > /dev/null 2>&1 +_scratch_mkfs -O has_journal >> $seqres.full 2>&1 echo "+ mount fs image" _scratch_mount diff --git a/tests/ext4/019 b/tests/ext4/019 index ab5f50c6..f0514093 100755 --- a/tests/ext4/019 +++ b/tests/ext4/019 @@ -32,7 +32,7 @@ TESTDIR="${SCRATCH_MNT}/scratchdir" TESTFILE="${TESTDIR}/testfile" echo "+ create scratch fs" -_scratch_mkfs_ext4 -O journal > /dev/null 2>&1 +_scratch_mkfs -O has_journal >> $seqres.full 2>&1 echo "+ mount fs image" _scratch_mount