mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
Commitc0ddcb2cbcintroduced the test which uses cache=direct mode, without checking if the scratch filesystem supports O_DIRECT. A subsequent commit,afeb002e0a, tried to fix that issue, but instead of checking for o_direct, it checked for `_supported_cache_modes none directsync`, which is not what the original mirror-sparse test uses. Fix both by actually checking for o_direct. Fixes:c0ddcb2cbc"tests: Add iotest mirror-sparse for recent patches" Fixes:afeb002e0a"tests/qemu-iotests/tests/mirror-sparse: skip if O_DIRECT is not supported" Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>