]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/workunits/rbd: avoid caching effects in luks-encryption.sh 58688/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 19 Jul 2024 17:35:28 +0000 (19:35 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 19 Jul 2024 18:50:36 +0000 (20:50 +0200)
commit9e1c0342e9931e898d795d47f923edd3b4324f4a
tree42f880d41d5376ccb06c903fe3a5408280950b90
parent51fd35d7c7f08190c2371ec7b1326ea3aaf97aee
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>
qa/workunits/rbd/luks-encryption.sh