Support for "4K-native" hard disks.
|Reported by:||pulkomandy||Owned by:||nobody|
|Has a Patch:||no||Platform:||All|
For some time now hard disks and SSDs have switched to 4K sectors instead of 512 bytes. They have, however, hidden this from the OS as it would break too much things (motherboard chipsets, BIOSes, etc). So the drives report secotrs of 512 bytes to the system and make adjustments on the firmware side.
However, we're starting to see some (high-end) drives which expose 4K sectors to the system. With an UEFI system and well-designed chipset the hardware issues should be solved, but the software needs to be adjusted as well. We need to check our MBR/GPT code, our stage1 loader, and the releated tools (drivesetup, writembr, makebootable, etc). We also need to check the ATA stack, block cache, filesystems, and make sure they don't hardcode the 512 bytes value anywhere and can handle 4K sectors properly. I suspect most of the issues would be in the bootloader and MBR, which is probably ok as these are skipped on EFI systems and it is currently unclear if an MBR is supposed to work on 4K-sector disks at all.