mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
qcow2: Ignore reserved bits in refcount table entries
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
143550a83e
commit
76dc9e0c8f
2 changed files with 3 additions and 1 deletions
|
@ -167,7 +167,7 @@ static int alloc_refcount_block(BlockDriverState *bs,
|
|||
if (refcount_table_index < s->refcount_table_size) {
|
||||
|
||||
uint64_t refcount_block_offset =
|
||||
s->refcount_table[refcount_table_index];
|
||||
s->refcount_table[refcount_table_index] & REFT_OFFSET_MASK;
|
||||
|
||||
/* If it's already there, we're done */
|
||||
if (refcount_block_offset) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue