All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Sector size is assumed 512
@ 2017-05-11 10:39 Tomasz Lasko
  2017-05-12 11:31 ` Alasdair G Kergon
  2017-05-12 11:34 ` Zdenek Kabelac
  0 siblings, 2 replies; 3+ messages in thread
From: Tomasz Lasko @ 2017-05-11 10:39 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 939 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 1257 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-12 11:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-11 10:39 [linux-lvm] Sector size is assumed 512 Tomasz Lasko
2017-05-12 11:31 ` Alasdair G Kergon
2017-05-12 11:34 ` Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.