Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
qemu.18973
0159-qcow2-Explicit-number-replaced-by-a.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0159-qcow2-Explicit-number-replaced-by-a.patch of Package qemu.18973
From: Leonid Bloch <lbloch@janustech.com> Date: Wed, 26 Sep 2018 19:04:47 +0300 Subject: qcow2: Explicit number replaced by a constant Include-If: %if 0%{?suse_version} == 1315 Signed-off-by: Leonid Bloch <lbloch@janustech.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> (cherry picked from commit bd016b912cc68c6f6c68cd5acb2e13126bd9e05c) [LM: BSC#1139926] Signed-off-by: Lin Ma <lma@suse.com> --- block/qcow2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/qcow2.c b/block/qcow2.c index 313da23ded0b2c124b6abd298a3c..9853c4c0729e39864c263767fe56 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1270,7 +1270,7 @@ static int qcow2_do_open(BlockDriverState *bs, QDict *options, int flags, /* 2^(s->refcount_order - 3) is the refcount width in bytes */ s->refcount_block_bits = s->cluster_bits - (s->refcount_order - 3); s->refcount_block_size = 1 << s->refcount_block_bits; - bs->total_sectors = header.size / 512; + bs->total_sectors = header.size / BDRV_SECTOR_SIZE; s->csize_shift = (62 - (s->cluster_bits - 8)); s->csize_mask = (1 << (s->cluster_bits - 8)) - 1; s->cluster_offset_mask = (1LL << s->csize_shift) - 1;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor