>>>>> "hpa" == H Peter Anvin <hpa@xxxxxxxxx> writes: >> The two patches following this add support for drives which have >> sector sizes other than 512 bytes. I haven't been able to test this >> as I don't have the hardware. hpa> What sector size do we report to user space for this? I'm asking hpa> because logical sector size is visible in most partition formats. There are several flavors of drives we have to deal with: 512-byte logical / 512-byte hardware (current) 512-byte logical / 4096-byte hardware (ATA, doing read-modify-write) 4096-byte logical / 4096-byte hardware (SCSI initially, ATA later) Because of 63-sector legacy problems a bunch of ATA vendors will initially ship 512/4096 drives that are not naturally aligned. I.e. logical sector 63 will be aligned on a 4KB hardware sector boundary to overcome the misaligned default partitioning. I have been working on some alignment patches the last week. They hook into the stuff Matthew has been doing in libata and I'll post them shortly. For each block device you'll get a hardware sector size exposed as well as whether the device (partition) is naturally aligned or not. This works for both ATA and SCSI devices. I'll defer to people like yourself for how this needs to work wrt. boot loaders and creating partition tables. I'm CC:ing Eric Sandeen because he's also looking at this... -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html