Re: [PATCH v2] osdep/linux: convert partition start to disk sector length.

2018-09-06 Thread Daniel Kiper
On Thu, Sep 06, 2018 at 04:16:39PM +0200, Mihai Moldovan wrote: > When reading data off a disk, sector values are based on the disk sector > length. > > Within grub_util_fd_open_device(), the start of the partition was taken > directly from grub's partition information structure, which uses the > i

[PATCH v2] osdep/linux: convert partition start to disk sector length.

2018-09-06 Thread Mihai Moldovan
When reading data off a disk, sector values are based on the disk sector length. Within grub_util_fd_open_device(), the start of the partition was taken directly from grub's partition information structure, which uses the internal sector length (currently 512b), but never transformed to the disk's