commit | 1e297c323590d3deae46e566956cc4351e2aa5da | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Jun 15 17:52:52 2010 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Jun 22 14:38:01 2010 +0200 |
tree | beadd56b5142b32bc63002efdcfcee4a2ff82bf0 | |
parent | c7126d5b3216e57b4e388e3fd34faa785b8e4bd0 [diff] |
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>