[PATCH 2/2] ext4/271: _notrun if there are journal related mount options

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



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 just _notrun if there're journal related mount options.

Signed-off-by: Eryu Guan <eguan@xxxxxxxxxx>
---
 tests/ext4/271 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/ext4/271 b/tests/ext4/271
index 217d0d8..c8e41e9 100755
--- a/tests/ext4/271
+++ b/tests/ext4/271
@@ -40,6 +40,11 @@ _supported_fs ext4
 _supported_os Linux
 _need_to_be_root
 _require_scratch
+# this test needs no journal to be loaded, skip on journal related mount options
+_require_no_mount_opts "data="
+_require_no_mount_opts "commit="
+_require_no_mount_opts "journal_checksum"
+_require_no_mount_opts "journal_async_commit"
 
 rm -f $seqres.full
 _scratch_mkfs_sized $((128 * 1024 * 1024)) >> $seqres.full 2>&1
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux