Re: ATA 4 KiB sector issues.

From: Martin K. Petersen
Date: Mon Mar 08 2010 - 22:13:51 EST


>>>>> "Tejun" == Tejun Heo <htejun@xxxxxxxxx> writes:

>> This will result in incorrect alignment for drives which lie about
>> the physical sector size to work around BIOS/drivers issues (C-1).
>> It would probably be best to align to at least 1MiB.

Tejun> I misread it. C-1 would be disks w/o alignment information which
Tejun> will be aligned to optimal_io_size which again would be 0 and
Tejun> thus 1MiB alignment. So, this should work, right?

Correct. ATA only provides physical block size whereas SCSI has the
extra knobs in the block limits VPD. And consequently ATA block devices
have min_io = physical block size and optimal_io = 0.

So we'll align to 1 MB by default.

--
Martin K. Petersen Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/