Re: [PATCH v2 1/1] osdep/freebsd: Fix partition calculation for EBR entries

2019-03-01 Thread Daniel Kiper
On Tue, Feb 26, 2019 at 06:40:14PM +, James Clarke wrote: > For EBR partitions, "start" is the relative starting sector of the EBR > header itself, whereas "offset" is the relative starting byte of the > partition's contents, excluding the EBR header and any padding. Thus we > must use "offset"

[PATCH v2 1/1] osdep/freebsd: Fix partition calculation for EBR entries

2019-02-26 Thread James Clarke
For EBR partitions, "start" is the relative starting sector of the EBR header itself, whereas "offset" is the relative starting byte of the partition's contents, excluding the EBR header and any padding. Thus we must use "offset", and divide by the sector size to convert to sectors. Signed-off-by: