]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix setting rbd_sparse_read_threshold_bytes in test_migration_clone() 68454/head
authorIlya Dryomov <idryomov@gmail.com>
Sat, 18 Apr 2026 08:43:05 +0000 (10:43 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 18 Apr 2026 08:44:11 +0000 (10:44 +0200)
Currently it's set on the intermediary clone instead of the parent.
As a result the setting is effective only for reads that terminate at
the intermediary clone -- reads that go all the way to the parent may
end up being handled as not sparse depending on their size.

Fixes: https://tracker.ceph.com/issues/76101
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
qa/workunits/rbd/luks-encryption.sh

index 049e4caad4761610473de925478d2b571632b63e..347d6cadae328fe5f9c3d6d5d0ab77ee5ff12d90 100755 (executable)
@@ -267,6 +267,9 @@ function test_migration_clone() {
   truncate -s 0 /tmp/cmpdata
   truncate -s 32M /tmp/cmpdata
 
+  # FIXME: https://tracker.ceph.com/issues/67402
+  rbd config image set testimg rbd_sparse_read_threshold_bytes 1
+
   rbd encryption format testimg $format /tmp/passphrase
   LIBRBD_DEV=$(_sudo rbd -p rbd map testimg -t nbd -o encryption-passphrase-file=/tmp/passphrase)
   xfs_io -c 'pwrite -S 0xaa -W 4M 1M' $LIBRBD_DEV /tmp/cmpdata
@@ -285,9 +288,6 @@ function test_migration_clone() {
   xfs_io -c 'pwrite -S 0xbb -W 28M 1M' $LIBRBD_DEV /tmp/cmpdata
   _sudo rbd device unmap -t nbd $LIBRBD_DEV
 
-  # FIXME: https://tracker.ceph.com/issues/67402
-  rbd config image set testimg1 rbd_sparse_read_threshold_bytes 1
-
   # live migrate a native clone image (removes testimg1)
   rbd migration prepare testimg1 testimg2