]> git.ipfire.org Git - thirdparty/grub.git/commit
windows: correct LBA in generated EFI HDD media paths
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 19 Dec 2015 08:32:26 +0000 (11:32 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 19 Dec 2015 08:32:49 +0000 (11:32 +0300)
commita9399f2e1e5819fdd9bd2a4d35d32420dd6cc679
tree063bd5673ccbff98885fb1a632af18f71cf7306b
parentc79c59f1295df8ea660f8a858f9532d76a5f67b7
windows: correct LBA in generated EFI HDD media paths

GRUB keeps partition offset and size in units of 512B sectors. Media paths
are defined in terms of LBA which are presumed to match HDD sector size.

This is probably cosmetic (EFI requires that partition is searched by GUID)
and still incorrect if GPT was created using different logical block size.
But current code is obviously wrong and new has better chances to be correct.
grub-core/osdep/windows/platform.c