Tomasz Lasko
2017-05-11 10:39:23 UTC
Hi,
I'm not a part of the list or the project, just a random guy dropping by
to say I found one suspicious thing:
after looking for what 's' size stands for, I found that your
lvmcmdline.c source code
<https://github.com/Jajcus/lvm2/blob/master/tools/lvmcmdline.c#L320>
probably assumes that sector size is 512, but there are various sector
sizes out in world (both for the hardware sector size and logical disk
interfaces like SCSI) especially more and more popular 4096 byte sector
size.
I wonder if apart of lvmcmdline.c above, also other parts of your
software assume that sector size will always be 512. If yes, then I
suggest rethinking if 4k sectors might break some operations in LVM.
By the way, I understand that when specifying command line parameter
sector size, then it is the same for small 's' as capital 'S', right?
And the same goes for bytes ('b' is the same as 'B'), right?
Best regards,
Tomasz Lasko
I'm not a part of the list or the project, just a random guy dropping by
to say I found one suspicious thing:
after looking for what 's' size stands for, I found that your
lvmcmdline.c source code
<https://github.com/Jajcus/lvm2/blob/master/tools/lvmcmdline.c#L320>
probably assumes that sector size is 512, but there are various sector
sizes out in world (both for the hardware sector size and logical disk
interfaces like SCSI) especially more and more popular 4096 byte sector
size.
I wonder if apart of lvmcmdline.c above, also other parts of your
software assume that sector size will always be 512. If yes, then I
suggest rethinking if 4k sectors might break some operations in LVM.
By the way, I understand that when specifying command line parameter
sector size, then it is the same for small 's' as capital 'S', right?
And the same goes for bytes ('b' is the same as 'B'), right?
Best regards,
Tomasz Lasko