freebsd-dev/cddl/contrib/opensolaris
Alan Somers 50b779bdc9 ZFS: fix adding vdevs to very large pools
r323791 changed the return value of zpool_read_label.  Error paths that
previously returned 0 began to return -1 instead.  However, not all error
paths initialized errno.  When adding vdevs to a very large pool, errno could
be prepopulated with ENOMEM, causing the operation to fail.  Fix the bug by
setting errno=ENOENT in the case that no ZFS label is found.

PR:		226096
Submitted by:	Nikita Kozlov
Reviewed by:	avg
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D13088
2018-03-02 21:26:48 +00:00
..
cmd MFV r329793, r329795: 2018-02-22 03:15:35 +00:00
common Recursively enumerate anonymous structs and unions in ctf_member_info(). 2016-08-30 05:50:42 +00:00
head MFV r270197: 2014-08-22 22:13:36 +00:00
lib ZFS: fix adding vdevs to very large pools 2018-03-02 21:26:48 +00:00
tools/ctf Revert r253678, r253661: 2016-12-03 17:44:43 +00:00
OPENSOLARIS.LICENSE