]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
ext4/271: _notrun if there are journal related mount options
authorEryu Guan <eguan@redhat.com>
Thu, 23 Jun 2016 06:09:47 +0000 (14:09 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 24 Jun 2016 04:54:04 +0000 (12:54 +0800)
ext4/271 runs in no journal mode (-onoload), so running test with
journal related mount options makes no sense, and test fails after
kernel commit 1e381f60dad9 ("ext4: do not allow journal_opts for fs
w/o journal"), journal related mount options are not allowed in no
journal mode. So _notrun if there're journal related mount options.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/ext4/271

index d68c2719024ee33c1015c4f88823920d34778d67..8674090ed815efe5339d5868c93f99c3eaf77c1f 100755 (executable)
@@ -39,6 +39,12 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
 _supported_fs ext4
 _supported_os Linux
 _require_scratch
+# this test needs no journal to be loaded, skip on journal related mount
+# options, otherwise mount would fail with "-o noload" mount option
+_exclude_scratch_mount_option "data="
+_exclude_scratch_mount_option "commit="
+_exclude_scratch_mount_option "journal_checksum"
+_exclude_scratch_mount_option "journal_async_commit"
 
 rm -f $seqres.full
 _scratch_mkfs_sized $((128 * 1024 * 1024)) >> $seqres.full 2>&1