commit | ac3c5d831aa0ff796659300e186be1a35862dbd3 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@redhat.com> | Mon Jun 24 17:13:13 2013 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Jun 28 09:20:26 2013 +0200 |
tree | 8ce199a08d701e447e97f91174ee049b48358965 | |
parent | cb78466ef60ccf707a6f38a1294c435b65a828e0 [diff] |
blockdev: use bdrv_getlength() in qmp_drive_mirror() Use bdrv_getlength() for its byte units and error return instead of bdrv_get_geometry(). Reported-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>