On Wed, Mar 02, 2022 at 02:59:47AM +0530, Nitesh Shetty wrote: > scsi_debug device used for test, is created with assumption of 512 bytes > logical and physical block size. > This causes error in lvcreate step, when SCRATCH_DEV device lba is not > 512 bytes. This can be solved by reading block size from sysfs of device. > If sysfs is missing fallback to 512 bytes as default. > > Signed-off-by: Nitesh Shetty <nj.shetty@xxxxxxxxxxx> Reviewed-by: Luis Chamberlain <mcgrof@xxxxxxxxxx> Luis