summary refs log tree commit diff stats
path: root/qemu-io-cmds.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-10-11 17:28:06 +0200
committerMax Reitz <mreitz@redhat.com>2019-10-28 11:54:00 +0100
commit8bc584fe035d98b8aca4fcc818617c91df0ed925 (patch)
treef88aa3e4d673fce26ed685a6a9eca498527928e7 /qemu-io-cmds.c
parent0a85af351d90e1ae9e06b3bb5290ddf2d5d8b950 (diff)
downloadfocaccia-qemu-8bc584fe035d98b8aca4fcc818617c91df0ed925.tar.gz
focaccia-qemu-8bc584fe035d98b8aca4fcc818617c91df0ed925.zip
qcow2: Separate qcow2_check_read_snapshot_table()
Reading the snapshot table can fail.  That is a problem when we want to
repair the image.

Therefore, stop reading the snapshot table in qcow2_do_open() in check
mode.  Instead, add a new function qcow2_check_read_snapshot_table()
that reads the snapshot table at a later point.  In the future, we want
to handle errors here and fix them.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20191011152814.14791-9-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions