qcow2: Keep track of the snapshot table length
commit624143355cb6e4149ec27b9b00088aeb958da31d
authorMax Reitz <mreitz@redhat.com>
Fri, 11 Oct 2019 15:28:09 +0000 (11 17:28 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 28 Oct 2019 10:54:02 +0000 (28 11:54 +0100)
treeebbe0e6b85ab005b1065d0e853de0fdeeada2901
parentf91f1f159bcaa81a70e860079a73ae7d1220dc0c
qcow2: Keep track of the snapshot table length

When repairing the snapshot table, we truncate entries that have too
much extra data.  This frees up space that we do not have to count
towards the snapshot table size.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20191011152814.14791-12-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-snapshot.c