freebsd-dev/sys/boot/efi
Toomas Soome e41fab8d40 loader: zfs reader should check all labels
The current zfs reader is only checking first label from each device, however,
we do have 4 labels on device and we should check all 4 to be protected
against disk failures and incomplete label updates.

The difficulty is about the fact that 2 label copies are in front of the
pool data, and 2 are at the end, which means, we have to know the size of
the pool data area.

Since we have now the mechanism from common/disk.c to use the partition
information, it does help us in this task; however, there are still some
corner cases.

Namely, if the pool is created without partition, directly on the disk,
and firmware will give us the wrong size for the disk, we only can check
the first two label copies.

Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D10203
2017-04-06 18:17:29 +00:00
..
boot1 loader: zfs reader should check all labels 2017-04-06 18:17:29 +00:00
fdt Add more .NOMETA missed in r291320 2016-03-11 23:45:51 +00:00
include Share UCS2/UTF8 routines between boot loader and userland. 2017-03-09 00:24:01 +00:00
libefi loader: efipart should check disk size from partition table 2017-03-30 16:23:31 +00:00
loader loader: zfs reader should check all labels 2017-04-06 18:17:29 +00:00
Makefile Fix typo in the COMPILER_VERSION check 2016-10-22 20:00:39 +00:00
Makefile.inc [efi] Build EFI bits with -fPIC on ARM 2017-01-10 20:15:24 +00:00