HardenedBSD/cddl/contrib/opensolaris/lib/libzfs/common
Andriy Gapon 65b5f7c743 MFV r323790: 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>

MFC after:	2 weeks
2017-09-20 07:23:50 +00:00
..
libzfs_changelist.c
libzfs_compat.c
libzfs_compat.h
libzfs_config.c
libzfs_dataset.c
libzfs_diff.c
libzfs_fru.c
libzfs_impl.h
libzfs_import.c MFV r323790: 8567 Inconsistent return value in zpool_read_label 2017-09-20 07:23:50 +00:00
libzfs_iter.c
libzfs_mount.c MFV r323523: 8331 zfs_unshare returns wrong error code for smb unshare failure 2017-09-13 10:23:55 +00:00
libzfs_pool.c MFV r323107: 8414 Implemented zpool scrub pause/resume 2017-09-09 11:00:07 +00:00
libzfs_sendrecv.c
libzfs_status.c
libzfs_util.c MFV r323107: 8414 Implemented zpool scrub pause/resume 2017-09-09 11:00:07 +00:00
libzfs.h MFV r323107: 8414 Implemented zpool scrub pause/resume 2017-09-09 11:00:07 +00:00