On 09/11/2014 09:39 PM, Ross Zwisler wrote:
I've tested this a bit using the version of fdisk found in Fedora (fdisk from
util-linux 2.24.2), which I believe is what you are using.
So far I can't come up with a case where fdisk does the wrong thing without
this patch and the right thing with it. Can you please provide me more
details on the use case that you are trying to fix?
Try 4M disk for one.
And have you really tested? Do you always get a start sector aligned on 8 (4k) ?
Well I do not, I easily get partition start sectors not aligned on 8.
Note that fdisk will allow me to set none-4k-aligened start and size but at least
with this patch it will not suggest them