]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration: compute QCOW snapshot deltas via L2 table deltas
authorJason Dillaman <dillaman@redhat.com>
Tue, 26 Jan 2021 05:18:45 +0000 (00:18 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 27 Jan 2021 18:34:08 +0000 (13:34 -0500)
commit6760f9a76a55264d9be3a63c718f4f44baf69f7f
treef57c8bfdd4868ab63e50328989d46ca5d593f329
parent2e33a57f32547cecffa4aa6e39b9634592115196
librbd/migration: compute QCOW snapshot deltas via L2 table deltas

Since each entry in a L2 table represents a cluster block within the
QCOW image, we can compute deltas by comparing L2 tables. This fixes
an issue where snapshots were not being properly thin-provisioned
during the live-migration execute process.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 2d8d70e2e9376adc15d5530d4d58f29dc5724bbe)
src/librbd/migration/QCOWFormat.cc
src/librbd/migration/QCOWFormat.h