diff options
author | Kevin Wolf <kwolf@redhat.com> | 2011-08-05 12:06:11 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-05 07:15:47 -0500 |
commit | 35d7ace74bd07e3d6983c1fd7cbfab4e11175689 (patch) | |
tree | e0a15b059afa68bac52bed462c8e0adbd272c4d3 /nbd.c | |
parent | 81e34a2401f7ffd519bb7f093e833cb48734169f (diff) |
qcow2: Fix L1 table size after bdrv_snapshot_goto
When loading an internal snapshot whose L1 table is smaller than the current L1
table, the size of the current L1 would be shrunk to the snapshot's L1 size in
memory, but not on disk. This lead to incorrect refcount updates and eventuelly
to image corruption.
Instead of writing the new L1 size to disk, this simply retains the bigger L1
size that is currently in use and makes sure that the unused part is zeroed.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Tested-by: Philipp Hahn <hahn@univention.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'nbd.c')
0 files changed, 0 insertions, 0 deletions