mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
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 <idryomov@gmail.com>
This commit is contained in:
parent
bf2ab87ea2
commit
2006412be9
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user