freebsd-dev/sys/boot/zfs
Toomas Soome 3384149c15 loader: zfs reader vdev_probe should check for minimum device size
The smallest device we can have in the pool is 64MB, since we are trying to
walk all four labels to find the most up to date uberblock, this limit will
also give us good method to check if we even should attempt to probe.

Enforcing the check also will make sure we are not getting wrapped while
calculating the label offset.

Also, after label check, we should verify if we actually got any UB or not.

PR:		218473
Reported by:	Masachika ISHIZUKA
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D10381
2017-04-18 15:43:47 +00:00
..
devicename_stubs.c
libzfs.h loader: zfs reader should check all labels 2017-04-06 18:17:29 +00:00
Makefile Disable loop unrolling in skein for sys/boot 2016-10-06 03:32:30 +00:00
Makefile.depend META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
zfs.c sys: Replace zero with NULL for pointers. 2017-02-22 02:35:59 +00:00
zfsimpl.c loader: zfs reader vdev_probe should check for minimum device size 2017-04-18 15:43:47 +00:00