diff options
author | Eric Blake <eblake@redhat.com> | 2016-05-06 10:26:28 -0600 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-05-12 15:22:08 +0200 |
commit | b7d17f9fa4df83ed060168c450889d73c441c8f6 (patch) | |
tree | 1e3440c0129ba315811ff15d1c4d917b0551e41d /hw/block/hd-geometry.c | |
parent | 8341f00dc207b80a1b2e7c7784890c9b0446d062 (diff) |
block: Switch blk_read_unthrottled() to byte interface
Sector-based blk_read() should die; convert the one-off
variant blk_read_unthrottled().
Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/block/hd-geometry.c')
-rw-r--r-- | hw/block/hd-geometry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/hd-geometry.c b/hw/block/hd-geometry.c index 6d02192dbb..d388f13e9d 100644 --- a/hw/block/hd-geometry.c +++ b/hw/block/hd-geometry.c @@ -66,7 +66,7 @@ static int guess_disk_lchs(BlockBackend *blk, * but also in async I/O mode. So the I/O throttling function has to * be disabled temporarily here, not permanently. */ - if (blk_read_unthrottled(blk, 0, buf, 1) < 0) { + if (blk_pread_unthrottled(blk, 0, buf, BDRV_SECTOR_SIZE) < 0) { return -1; } /* test msdos magic */ |