commit | 52bf1e722d996d1accfc35e29283f172d003d9b2 | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@redhat.com> | Thu Jun 26 13:23:25 2014 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Aug 15 15:07:13 2014 +0200 |
tree | 6244812b64390f1274615ba0bad9028d501505eb | |
parent | d739f1c41094141268a33fa8fc6715fbab714fbe [diff] |
block: Avoid bdrv_get_geometry() where errors should be detected bdrv_get_geometry() hides errors. Use bdrv_nb_sectors() or bdrv_getlength() instead where that's obviously inappropriate. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>