common/rc: ext4 doesn't support O_DIRECT with data journaling
[xfstests-dev.git] / common / rc
index d47c1dbe875267f5d6aef2f9c5f2aee5294e804a..fa3b215072049e574ab603cfe0c5e67159f874ff 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2150,6 +2150,8 @@ _require_odirect()
        if [ $FSTYP = "ext4" ] ; then
                if echo "$MOUNT_OPTIONS" | grep -q "test_dummy_encryption"; then
                        _notrun "ext4 encryption doesn't support O_DIRECT"
+               elif echo "$MOUNT_OPTIONS" | grep -q "data=journal"; then
+                       _notrun "ext4 data journaling doesn't support O_DIRECT"
                fi
        fi
        testfile=$TEST_DIR/$$.direct