From: Ilya Dryomov Date: Sat, 18 Apr 2026 08:43:05 +0000 (+0200) Subject: qa: fix setting rbd_sparse_read_threshold_bytes in test_migration_clone() X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2006412be9fbe36766862d9c7d085e25b7b5d74c;p=ceph.git qa: fix setting rbd_sparse_read_threshold_bytes in test_migration_clone() 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 --- diff --git a/qa/workunits/rbd/luks-encryption.sh b/qa/workunits/rbd/luks-encryption.sh index 049e4caad476..347d6cadae32 100755 --- a/qa/workunits/rbd/luks-encryption.sh +++ b/qa/workunits/rbd/luks-encryption.sh @@ -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