]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/workunits/rbd: avoid caching effects in luks-encryption.sh
authorIlya Dryomov <idryomov@gmail.com>
Fri, 19 Jul 2024 17:35:28 +0000 (19:35 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Jul 2024 13:54:56 +0000 (15:54 +0200)
commitc5bd9a4a8519744fda1aef06f39b98eada34abe6
tree38b6658d28de7799b75d92212df3dec1e2d64410
parent6f27a6d1df204ab9b34f7efe8ac621b081aa6ac1
qa/workunits/rbd: avoid caching effects in luks-encryption.sh

Commit 40f6f5224bce ("qa/workunits/rbd: fix issues in
luks-encryption.sh") did the right thing for reads, which solved
most of the issue.  However, it actually made a step in the opposite
direction for writes -- depending on the RBD cache settings, rbd-nbd
virtual devices can behave as physical devices with a volatile write
cache, so fsync is required.

While at it, involving O_DIRECT for reads isn't needed outside of
test_encryption_format().

Fixes: https://tracker.ceph.com/issues/67051
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 9e1c0342e9931e898d795d47f923edd3b4324f4a)
qa/workunits/rbd/luks-encryption.sh