tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT
PATCH 1/1 tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT
Commit c0ddcb2cbc146e introduced the test which uses cache=direct mode, without checking if the scratch filesystem supports O_DIRECT. A subsequent commit, afeb002e0ad49d, 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.
---
This is what happens when rushing for last-minute
pre-release fixes.. I'm sorry for this.
tests/qemu-iotests/tests/mirror-sparse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/tests/mirror-sparse +1 -1
@@ -40,7 +40,7 @@ cd .. _supported_fmt qcow2 raw # Format of the source. dst is always raw file _supported_proto file _supported_os Linux -_supported_cache_modes none directsync +_require_o_direct _require_disk_usage echo
Signature · 1 line
2.47.2
Quoted 8 lines · Michael Tokarev
Commit
c0ddcb2cbc146eintroduced the test which uses cache=direct mode, without checking if the scratch filesystem supportsO_DIRECT. A subsequent commit,afeb002e0ad49d, tried to fix that issue, but instead of checking foro_direct, it checked for_supported_cache_modes none directsync, which is not what the original mirror-sparse test uses. Fix both by actually checking foro_direct.
Quoted 6 lines
Fixes c0ddcb2cbc146e "tests: Add iotest mirror-sparse for recent patches"Fixes afeb002e0ad49d "tests/qemu-iotests/tests/mirror-sparse: skip if O_DIRECT is not supported"Signed-off-by Michael Tokarev <[email protected]>---
This is what happens when rushing for last-minute
pre-release fixes.. I'm sorry for this.
My bad actually :/
Quoted 17 lines
tests/qemu-iotests/tests/mirror-sparse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/qemu-iotests/tests/mirror-sparse +1
-1@@ -40,7 +40,7 @@ cd .. _supported_fmt qcow2 raw # Format of the source. dst is always raw file _supported_proto file _supported_os Linux -_supported_cache_modes none directsync +_require_o_direct _require_disk_usage echo
Quoted 6 lines · Philippe Mathieu-Daudé
Quoted 2 lines · Michael Tokarev
This is what happens when rushing for last-minute
pre-release fixes.. I'm sorry for this.My bad actually :/
Well, we both are guilty here :)
And I'm probably more guilty because my initial fix was testing the same as the actual code is using, and I felt that your suggestion is wrong - I had everything to at least *check* the damn thing closely. But I didn't do that.
It is more, - I felt that with your condition, the test might be skipped even on o_direct-supporting filesystem. But I didn't verify that *too*, which is even worse.
Instead, I blindly took your advice, without verifying my own doubts. I think this is more wrong than, when one have serious doubts but does not bother even verifying them.
Now, back to work..
Philippe, R-b? :)
Thanks,
/mjt
Quoted 11 lines · Michael Tokarev
Commit
c0ddcb2cbc146eintroduced the test which uses cache=direct mode, without checking if the scratch filesystem supportsO_DIRECT. A subsequent commit,afeb002e0ad49d, tried to fix that issue, but instead of checking foro_direct, it checked for_supported_cache_modes none directsync, which is not what the original mirror-sparse test uses. Fix both by actually checking foro_direct.Fixes c0ddcb2cbc146e "tests: Add iotest mirror-sparse for recent patches"Fixes afeb002e0ad49d "tests/qemu-iotests/tests/mirror-sparse: skip if O_DIRECT is not supported"Signed-off-by Michael Tokarev <[email protected]>
Quoted 6 lines
---
This is what happens when rushing for last-minute
pre-release fixes.. I'm sorry for this.tests/qemu-iotests/tests/mirror-sparse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Please include this in a pull request for QEMU v10.1.0-rc3. Thanks!