]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - contrib/unbound/libunbound/python/doc/install.rst
MFV r323790: 8567 Inconsistent return value in zpool_read_label
authorAndriy Gapon <avg@FreeBSD.org>
Wed, 20 Sep 2017 07:23:50 +0000 (07:23 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Wed, 20 Sep 2017 07:23:50 +0000 (07:23 +0000)
commit65b5f7c743e40c0337c0bf3701f6d9f45d8fef16
treeef341f87926cf6c3e5bd11e9614319069e1ee161
parente9bfbb02c5d7a92276b1478971b2c60ffc261ab6
parent035e679e27b17d10a69ec1dbc5538e70e66beaf5
MFV r323790: 8567 Inconsistent return value in zpool_read_label

illumos/illumos-gate@c861bfbd77c4ae780a0341e9cb6926d8b74341cf
https://github.com/illumos/illumos-gate/commit/c861bfbd77c4ae780a0341e9cb6926d8b74341cf

https://www.illumos.org/issues/8567
  If fstat64 fails, pread64 fails, or the label is unintelligible,
  zpool_read_label will return 0. But if malloc fails, it will return -1. For
  consistency, it should always return -1 on failure or 0 on success.

Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Alan Somers <asomers@gmail.com>

MFC after: 2 weeks
cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c