Hi. I noticed that currently in luks.cpp sector size is hardcoded to 512B and in luks2 is not specified at all.
Most modern user SSDs and HDDs using 4k sector size.
And setting it to 512B lead sometimes to huge perf degradation.
Fedora for example using 4k for default - Changes/LUKSEncryptionSectorSize - Fedora Project Wiki
So, can someone please change this default value in sources?
Thank you.