Re: [U-Boot] [PATCH] part_efi: Fix partition size calculation due to inclusive ending LBA.

2009-01-23 Thread Richard Retanubun
Ping. checking for feedback on this patch, thanks. This patch fixed an off-by-one bug found for GPT. Because the ending LBA is inclusive, the partition size should be ((ending_lba + 1) - starting-LBA). This is confirmed against the results from the parted tool. (e.g. use parted /dev/sda -s

Re: [U-Boot] [PATCH] part_efi: Fix partition size calculation due to inclusive ending LBA.

2009-01-23 Thread Wolfgang Denk
Dear Richard Retanubun, In message 494286ed.2070...@ruggedcom.com you wrote: From b24eaf52ade5e5f1e94243f727d4c0f6d0fccdf5 Mon Sep 17 00:00:00 2001 From: Richard Retanubun richardretanu...@ruggedcom.com Date: Fri, 12 Dec 2008 10:23:45 -0500 Subject: [PATCH] The ending LBA is inclusive. Hence,

[U-Boot] [PATCH] part_efi: Fix partition size calculation due to inclusive ending LBA.

2009-01-05 Thread Richard Retanubun
This patch fixed an off-by-one bug found for GPT. Because the ending LBA is inclusive, the partition size should be ((ending_lba + 1) - starting-LBA). This is confirmed against the results from the parted tool. (e.g. use parted /dev/sda -s unit S print) and observe the size. Signed-off-by:

[U-Boot] [PATCH] part_efi: Fix partition size calculation due to inclusive ending LBA.

2008-12-12 Thread Richard Retanubun
From b24eaf52ade5e5f1e94243f727d4c0f6d0fccdf5 Mon Sep 17 00:00:00 2001 From: Richard Retanubun richardretanu...@ruggedcom.com Date: Fri, 12 Dec 2008 10:23:45 -0500 Subject: [PATCH] The ending LBA is inclusive. Hence, the partition size should be ((ending-LBA + 1) - starting-LBA) to get the