From ae5ee1bd5e54409b4589217b160c8cf4b81e2fb8 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 5 Mar 2018 11:31:44 -0700 Subject: 9237 "zpool add" fails for very large pools Reviewed by: Matthew Ahrens Reviewed by: Andriy Gapon Approved by: Matt Ahrens --- usr/src/lib/libzfs/common/libzfs_import.c | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3