summaryrefslogtreecommitdiffstats
path: root/block/qcow2-snapshot.c
diff options
context:
space:
mode:
authorAlberto Faria2022-10-13 14:37:06 +0200
committerKevin Wolf2022-10-27 20:14:11 +0200
commit38505e2a147c4f9fade382ede4a40e287c7bd846 (patch)
treebd8607d6a656d07e7082b8341e337d977c8958db /block/qcow2-snapshot.c
parentqcow: switch to *_co_* functions (diff)
downloadqemu-38505e2a147c4f9fade382ede4a40e287c7bd846.tar.gz
qemu-38505e2a147c4f9fade382ede4a40e287c7bd846.tar.xz
qemu-38505e2a147c4f9fade382ede4a40e287c7bd846.zip
qcow2: switch to *_co_* functions
Signed-off-by: Alberto Faria <afaria@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20221013123711.620631-20-pbonzini@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2-snapshot.c')
-rw-r--r--block/qcow2-snapshot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/qcow2-snapshot.c b/block/qcow2-snapshot.c
index d1d46facbf..62e8a0335d 100644
--- a/block/qcow2-snapshot.c
+++ b/block/qcow2-snapshot.c
@@ -441,9 +441,9 @@ int coroutine_fn qcow2_check_read_snapshot_table(BlockDriverState *bs,
} QEMU_PACKED snapshot_table_pointer;
/* qcow2_do_open() discards this information in check mode */
- ret = bdrv_pread(bs->file, offsetof(QCowHeader, nb_snapshots),
- sizeof(snapshot_table_pointer), &snapshot_table_pointer,
- 0);
+ ret = bdrv_co_pread(bs->file, offsetof(QCowHeader, nb_snapshots),
+ sizeof(snapshot_table_pointer), &snapshot_table_pointer,
+ 0);
if (ret < 0) {
result->check_errors++;
fprintf(stderr, "ERROR failed to read the snapshot table pointer from "