On Mon, Sep 27 2010 at 12:41pm -0400, Martin K. Petersen <martin.petersen@xxxxxxxxxx> wrote: > The hw_sector_size variable could overflow if a device reported huge > physical blocks. Switch to the more accurate physical_block_size > terminology and make sure we use an unsigned int to match the range > permitted by READ CAPACITY(16). > > Also print a warning of the physical block size exceeds the page size. > > Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> Acked-by: Mike Snitzer <snitzer@xxxxxxxxxx> (with the understanding that we may/will look to limit physical_block_size to PAGE_SIZE in a follow-on patch). -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html