On 2010-09-28 02:20, Martin K. Petersen wrote: >>>>>> "Jens" == Jens Axboe <jaxboe@xxxxxxxxxxxx> writes: > > Jens> Fixing the overflow aside, I question the validity of setting the > Jens> physical block size to something larger than PAGE_SIZE as there's > Jens> no way that that could really work in the current kernel. > > Jens> I would suggest doing something similar as we do with other > Jens> 'invalid' settings that we cannot honor, print a warning and drop > Jens> the queue limits to PAGE_SIZE. > > Mike and I have been bouncing this back and forth on this the last > couple of days. > > I totally agree with enforcing hard limits like the logical blocks size > inside the kernel. We have to. But the physical block size is just an > I/O hint. And consequently I prefer mkfs to do sanity checking in this > case and not the kernel. We report the topology truthfully and then > userland can treat the data as it sees fit. So it's just the hint, not the actual hardware sector size. The naming is pretty bad on that, physical and logic... So that does look better, but in that case I don't think that sd should dump a warning. Does mkfs do the right thing? -- Jens Axboe -- 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