/[base]
ViewVC logotype

Revision 330295


Jump to revision: Previous Next
Author: asomers
Date: Fri Mar 2 21:26:48 2018 UTC (6 years, 4 months ago)
Changed paths: 1
Log Message:
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


Changed paths

Path Details
Directoryhead/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27