]> git.proxmox.com Git - qemu.git/commit
block: do not use ->total_sectors in bdrv_co_is_allocated
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Sep 2013 17:00:23 +0000 (19:00 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Sep 2013 13:25:08 +0000 (15:25 +0200)
commit617ccb466e1937a5c99332ce77a47ebd29861ae4
tree13686ac810955b6dcc9c1f155129f216d5d50904
parentbdad13b9deec47d5d9eaf7f43867d19a79471244
block: do not use ->total_sectors in bdrv_co_is_allocated

This is more robust when the device has removable media.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c