aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2018-07-31 21:42:31 +0000
committerAlexander Motin <mav@FreeBSD.org>2018-07-31 21:42:31 +0000
commit5c1f9052827fe0c96e7803daff8a672473eaebd1 (patch)
tree6801094fd709534a796fbf98ec7182e83d084c9f /lib
parentb3e8109985ed2075436bd692462b01df393da4cf (diff)
downloadsrc-5c1f9052827fe0c96e7803daff8a672473eaebd1.tar.gz
src-5c1f9052827fe0c96e7803daff8a672473eaebd1.zip
9237 "zpool add" fails for very large pools
illumos/illumos-gate@ae5ee1bd5e54409b4589217b160c8cf4b81e2fb8 Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Andriy Gapon <avg@FreeBSD.org> Approved by: Matt Ahrens <mahrens@delphix.com> Author: Alan Somers <asomers@gmail.com>
Notes
Notes: svn path=/vendor/illumos/dist/; revision=337016
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/common/libzfs_import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libzfs/common/libzfs_import.c b/lib/libzfs/common/libzfs_import.c
index dbe37944a7ae..d28e852ef69b 100644
--- a/lib/libzfs/common/libzfs_import.c
+++ b/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);
}