vmdk: Use bdrv_nb_sectors() where sectors, not bytes are wanted
commit0a156f7c750c4e4e1c5dfb2135debcf399e4e2a7
authorMarkus Armbruster <armbru@redhat.com>
Thu, 21 Aug 2014 12:36:19 +0000 (21 14:36 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Aug 2014 09:10:12 +0000 (22 11:10 +0200)
tree13168ec0fb23c168b0c00e63e7de5426311e4982
parentcbf95a0b117461473f05ab3cce4d01ba2b29e60a
vmdk: Use bdrv_nb_sectors() where sectors, not bytes are wanted

Instead of bdrv_getlength().

Commit 57322b7 did this all over block, but one more bdrv_getlength()
has crept in since.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c