]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfsboot: to detect disk size, use GPT information first
authorToomas Soome <tsoome@FreeBSD.org>
Tue, 30 Apr 2019 17:45:22 +0000 (17:45 +0000)
committerToomas Soome <tsoome@FreeBSD.org>
Tue, 30 Apr 2019 17:45:22 +0000 (17:45 +0000)
commit3a1f80e2d770426ab1f121d9925244314c10d897
treeff2eb08f31eb8f86a4d87319c8b5338aae1c617a
parentbe1ef9be42309016259a0e72926123663346d505
zfsboot: to detect disk size, use GPT information first

If we do have GPT on disk, read the disk size from it and do not
call int13.

Since int13 does report bogus informatiopn too often, rather trust the
partition table. We are using the same strategy with loader.

MFC after: 1 month
stand/i386/zfsboot/zfsboot.c