]> git.proxmox.com Git - mirror_qemu.git/commit - block/vmdk.c
block: Use bdrv_nb_sectors() where sectors, not bytes are wanted
authorMarkus Armbruster <armbru@redhat.com>
Thu, 26 Jun 2014 11:23:22 +0000 (13:23 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Aug 2014 13:07:13 +0000 (15:07 +0200)
commit57322b7811a9136507742bb7ebc2215dd8c2e911
treef21998bdcfbab129909170f2ba3df7f740cd3798
parent43716fa8058a9095b9c1f9be4397dbaf7c521ee0
block: Use bdrv_nb_sectors() where sectors, not bytes are wanted

Instead of bdrv_getlength().

Aside: a few of these callers don't handle errors.  I didn't
investigate whether they should.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block-migration.c
block.c
block/qcow2.c
block/vmdk.c