]> git.ipfire.org Git - thirdparty/qemu.git/commit
vmdk: Fix index_in_cluster calculation in vmdk_co_get_block_status
authorFam Zheng <famz@redhat.com>
Thu, 4 Jun 2015 06:02:56 +0000 (14:02 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 29 Jul 2015 23:32:49 +0000 (18:32 -0500)
commit714b54401c0c6238dcf6e361ce96f2a765719326
tree9b6bb73a29b30bd4028c786edee530b941b5a0c5
parente7e08380c3ad3ac9e5768041a82ba6d7e29139e8
vmdk: Fix index_in_cluster calculation in vmdk_co_get_block_status

It has the similar issue with b1649fae49a8. Since the calculation
is repeated for a few times already, introduce a function so it can be
reused.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 61f0ed1d54601b91b8195c1a30d7046f83283b40)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/vmdk.c