vmdk: Fix calculation of block status's offset
commitd0a18f10251f515c86dcaec5bdf979a4e07fafc5
authorFam Zheng <famz@redhat.com>
Tue, 26 Jan 2016 03:58:58 +0000 (26 11:58 +0800)
committerMax Reitz <mreitz@redhat.com>
Tue, 2 Feb 2016 16:50:47 +0000 (2 17:50 +0100)
tree6faef7830e2c1b94584aff25d92a9cbdcfaebf2b
parent7429e207883fb6f6bd46cefee4c79771e50f35f4
vmdk: Fix calculation of block status's offset

"offset" is the offset of cluster and sector_num doesn't necessarily
refer to the start of it, it should add index_in_cluster.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1453780743-16806-12-git-send-email-famz@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/vmdk.c