mirror of
https://git.proxmox.com/git/qemu
synced 2025-07-27 13:24:54 +00:00
qcow2: CHECK_OFLAG_COPIED is obsolete
CHECK_OFLAG_COPIED as a parameter to check_refcounts_l1 and check_refcounts_l2 is obselete now, since the OFLAG_COPIED consistency check is actually no longer performed by these functions (but by check_oflag_copied). Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
1e242b5544
commit
db0749012b
@ -1034,7 +1034,6 @@ static void inc_refcounts(BlockDriverState *bs,
|
|||||||
|
|
||||||
/* Flags for check_refcounts_l1() and check_refcounts_l2() */
|
/* Flags for check_refcounts_l1() and check_refcounts_l2() */
|
||||||
enum {
|
enum {
|
||||||
CHECK_OFLAG_COPIED = 0x1, /* check QCOW_OFLAG_COPIED matches refcount */
|
|
||||||
CHECK_FRAG_INFO = 0x2, /* update BlockFragInfo counters */
|
CHECK_FRAG_INFO = 0x2, /* update BlockFragInfo counters */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1481,8 +1480,7 @@ int qcow2_check_refcounts(BlockDriverState *bs, BdrvCheckResult *res,
|
|||||||
|
|
||||||
/* current L1 table */
|
/* current L1 table */
|
||||||
ret = check_refcounts_l1(bs, res, refcount_table, nb_clusters,
|
ret = check_refcounts_l1(bs, res, refcount_table, nb_clusters,
|
||||||
s->l1_table_offset, s->l1_size,
|
s->l1_table_offset, s->l1_size, CHECK_FRAG_INFO);
|
||||||
CHECK_OFLAG_COPIED | CHECK_FRAG_INFO);
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user