]> git.apps.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>
Tue, 26 Jan 2021 16:42:47 +0000 (11:42 -0500)
commit2d8d70e2e9376adc15d5530d4d58f29dc5724bbe
tree4b6f7f26f927c79a9d97fb63a5fe44318b863096
parent251990a1462a5770e6bbbb9642acbcce2cac525d
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>
src/librbd/migration/QCOWFormat.cc
src/librbd/migration/QCOWFormat.h