qcow2: Use L1E_SIZE in qcow2_write_l1_entry()
PATCH 1/1 qcow2: Use L1E_SIZE in qcow2_write_l1_entry()
We overlooked these in 02b1ecfa100e7ecc2306560cd27a4a2622bfeb04
Signed-off-by Alberto Garcia <[email protected]>
--- block/qcow2-cluster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
block/qcow2-cluster.c +2 -2
@@ -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;
Signature · 1 line
2.20.1
Quoted 7 lines · Alberto Garcia
We overlooked these in
02b1ecfa100e7ecc2306560cd27a4a2622bfeb04Signed-off-by Alberto Garcia <[email protected]>--- block/qcow2-cluster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Eric Blake <[email protected]>
Quoted 22 lines
block/qcow2-cluster.c +2
-2@@ -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;
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
Kevin Wolf
AppliedAm 28.09.2020 um 18:23 hat Alberto Garcia geschrieben:
Quoted 3 lines
We overlooked these in
02b1ecfa100e7ecc2306560cd27a4a2622bfeb04Signed-off-by Alberto Garcia <[email protected]>
Thanks, applied to the block branch.
Kevin