diff options
| author | Christoph Hellwig | 2010-06-15 17:52:52 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2010-06-22 14:38:01 +0200 |
| commit | 1e297c323590d3deae46e566956cc4351e2aa5da (patch) | |
| tree | beadd56b5142b32bc63002efdcfcee4a2ff82bf0 /blockdev.c | |
| parent | scsi-bus: Add MAINTENANCE_IN and MAINTENANCE_OUT SCSIRequest xfer and mode as... (diff) | |
| download | qemu-1e297c323590d3deae46e566956cc4351e2aa5da.tar.gz qemu-1e297c323590d3deae46e566956cc4351e2aa5da.tar.xz qemu-1e297c323590d3deae46e566956cc4351e2aa5da.zip | |
block: fix physical_block_size calculation
Both SCSI and virtio expect the physical block size relative to the
logical block size. So get the factor first before calculating the
log2.
Reported-by: Mike Cao <bcao@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions
