summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2018-03-05 11:31:44 -0700
committerPrakash Surya <prakash.surya@delphix.com>2018-05-01 12:59:28 -0700
commitae5ee1bd5e54409b4589217b160c8cf4b81e2fb8 (patch)
treeaac2edf337c666f79806c00f805d8b30215af54d
parent20b5dafb425396adaebd0267d29e1026fc4dc413 (diff)
downloadillumos-joyent-ae5ee1bd5e54409b4589217b160c8cf4b81e2fb8.tar.gz
9237 "zpool add" fails for very large pools
Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Andriy Gapon <avg@FreeBSD.org> Approved by: Matt Ahrens <mahrens@delphix.com>
-rw-r--r--usr/src/lib/libzfs/common/libzfs_import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/lib/libzfs/common/libzfs_import.c b/usr/src/lib/libzfs/common/libzfs_import.c
index dbe37944a7..d28e852ef6 100644
--- a/usr/src/lib/libzfs/common/libzfs_import.c
+++ b/usr/src/lib/libzfs/common/libzfs_import.c
@@ -895,6 +895,7 @@ zpool_read_label(int fd, nvlist_t **config)
free(label);
*config = NULL;
+ errno = ENOENT;
return (-1);
}