Re: [PATCH] Make grub_efidisk_get_device_name() work on 4K native disks.

2013-04-05 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 04.04.2013 20:14, Andrey Borzenkov wrote: > В Thu, 4 Apr 2013 13:52:05 -0400 > Peter Jones пишет: > >> On Wed, Apr 03, 2013 at 11:03:46PM +0400, Andrey Borzenkov wrote: >>> В Wed, 3 Apr 2013 11:53:06 -0400 >>> Peter Jones пишет: >>> When we have 4kB sectors instead of 512b sectors, hd.

Re: [PATCH] Make grub_efidisk_get_device_name() work on 4K native disks.

2013-04-04 Thread Andrey Borzenkov
В Thu, 4 Apr 2013 13:52:05 -0400 Peter Jones пишет: > On Wed, Apr 03, 2013 at 11:03:46PM +0400, Andrey Borzenkov wrote: > > В Wed, 3 Apr 2013 11:53:06 -0400 > > Peter Jones пишет: > > > > > When we have 4kB sectors instead of 512b sectors, hd.partition_start and > > > grub_partition_get_start(

Re: [PATCH] Make grub_efidisk_get_device_name() work on 4K native disks.

2013-04-04 Thread Peter Jones
On Wed, Apr 03, 2013 at 11:03:46PM +0400, Andrey Borzenkov wrote: > В Wed, 3 Apr 2013 11:53:06 -0400 > Peter Jones пишет: > > > When we have 4kB sectors instead of 512b sectors, hd.partition_start and > > grub_partition_get_start() won't match - the latter assumes 512-byte > > sectors, and the f

Re: [PATCH] Make grub_efidisk_get_device_name() work on 4K native disks.

2013-04-03 Thread Andrey Borzenkov
В Wed, 3 Apr 2013 11:53:06 -0400 Peter Jones пишет: > When we have 4kB sectors instead of 512b sectors, hd.partition_start and > grub_partition_get_start() won't match - the latter assumes 512-byte > sectors, and the former gives us the correct number based on the > physical media's sector size.

[PATCH] Make grub_efidisk_get_device_name() work on 4K native disks.

2013-04-03 Thread Peter Jones
When we have 4kB sectors instead of 512b sectors, hd.partition_start and grub_partition_get_start() won't match - the latter assumes 512-byte sectors, and the former gives us the correct number based on the physical media's sector size. So when we have to compare them, we need to compensate. Sign