I believe this is the same question as Optimizing logical sector size for physical sector size 4096 HDD but that question never got an accepted answer and the existing answers dance around the core question.
If I have an advanced format HDD/SSD that I know has a physical sector size of 4K, AND I know that all the hardware/software on my system can handle a minimum I/O size of 4K, AND I'm OK with the marginal loss of free space for files smaller than 4K, THEN is there a way for me to set it up so that all components of the system view that device has having both a logical and physical sector size of 4K?
I expect a solid answer including the following information:
What information does the disk reports to the kernel?
Does the kernel unconditionally and truthfully reports that info via
/sysor whether it can be made to conditionally adjust the values?
Whether components other than the kernel might directly interact with the hardware and discover this information.