]> err.no Git - util-linux/commit
libblkid: convert GPT partition LBA to 512-byte sectors
authorKarel Zak <kzak@redhat.com>
Thu, 22 Oct 2009 19:40:27 +0000 (21:40 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 22 Oct 2009 21:19:25 +0000 (23:19 +0200)
commit4c8e837230bb96dc3c447706d9c3b11e4167ba13
tree2b7938dab8402b295a03c95297077563b1bbc6b7
parent2a1dfbad1c3da1c98fa35e3175e84229253af387
libblkid: convert GPT partition LBA to 512-byte sectors

The libblkid keeps information about partitions in 512-byte counts.
This patch:

 * convert GPT partition LBA to 512-byte sectors

 * fix n+1 bug in GPT partition size, because:

   "The partition is defined as all the logical blocks **inclusive**
    of the StartingLBA and EndingLBA." (UEFI 2.3)

Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/partitions/gpt.c