projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45db4bc
)
qcow2: Use L1E_SIZE in qcow2_write_l1_entry()
author
Alberto Garcia
<berto@igalia.com>
Mon, 28 Sep 2020 16:23:33 +0000
(18:23 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 2 Oct 2020 13:46:40 +0000
(15:46 +0200)
We overlooked these in
02b1ecfa100e7ecc2306560cd27a4a2622bfeb04
Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-Id: <
20200928162333
.14998-1-berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c
patch
|
blob
|
history
diff --git
a/block/qcow2-cluster.c
b/block/qcow2-cluster.c
index 9acc6ce4aeb2d11d1dd4d284ebd929af05287436..aa87d3e99b63201ef39ac8fb47c9a55fe6359698 100644
(file)
--- a/
block/qcow2-cluster.c
+++ b/
block/qcow2-cluster.c
@@
-240,14
+240,14
@@
int qcow2_write_l1_entry(BlockDriverState *bs, int l1_index)
}
ret = qcow2_pre_write_overlap_check(bs, QCOW2_OL_ACTIVE_L1,
- s->l1_table_offset +
8
* l1_start_index, bufsize, false);
+ s->l1_table_offset +
L1E_SIZE
* l1_start_index, bufsize, false);
if (ret < 0) {
return ret;
}
BLKDBG_EVENT(bs->file, BLKDBG_L1_UPDATE);
ret = bdrv_pwrite_sync(bs->file,
- s->l1_table_offset +
8
* l1_start_index,
+ s->l1_table_offset +
L1E_SIZE
* l1_start_index,
buf, bufsize);
if (ret < 0) {
return ret;