freebsd-dev/cmd/zpool
Andriy Gapon 035e679e27 8567 Inconsistent return value in zpool_read_label
illumos/illumos-gate@c861bfbd77
c861bfbd77

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>
2017-09-20 07:18:09 +00:00
..
zpool_iter.c 6551 cmd/zpool: cleanup gcc warnings 2016-03-08 18:37:34 +00:00
zpool_main.c 8567 Inconsistent return value in zpool_read_label 2017-09-20 07:18:09 +00:00
zpool_util.c Update vendor/opensolaris to last OpenSolaris state (13149:b23a4dab3d50) 2012-07-18 07:48:04 +00:00
zpool_util.h 7446 zpool create should support efi system partition 2017-05-26 12:02:14 +00:00
zpool_vdev.c 7446 zpool create should support efi system partition 2017-05-26 12:02:14 +00:00