]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix two bugs in the calculation of the last LBA of the GPT covered
authormarcel <marcel@FreeBSD.org>
Mon, 3 Nov 2003 06:24:48 +0000 (06:24 +0000)
committermarcel <marcel@FreeBSD.org>
Mon, 3 Nov 2003 06:24:48 +0000 (06:24 +0000)
commit2464f65e4a4b7cbb0f19cd1bbdddf66f184ae59b
tree1501e3833c8ddd8157f34e94ce12a23992e4d857
parent112f2c38060e509779b15374f516b20a821743f5
Fix two bugs in the calculation of the last LBA of the GPT covered
part of the disk. The first appears to be a typo and instead of
dividing the media size with the sector size, we multiplied. The
second is an off-by-1 error that's the result of mixing up count
and index. The code in question is only applicable for virgin disks
and is used to create the "whole" chunk, which covers only the GPT
usable portion of the disk.
lib/libdisk/open_ia64_disk.c