8567 changed the return value of zpool_read_label. Error paths that previously returned 0 began to return -1 instead. However, not all error paths initialized errno. When adding vdevs to a very large pool, errno could be prepopulated with ENOMEM, causing the operation to fail. Fix the bug by setting errno=ENOENT in the case that no ZFS label is found.
Obtained from: FreeBSD You can view, comment on, or merge this pull request online at: https://github.com/openzfs/openzfs/pull/582 -- Commit Summary -- * 9237 "zpool add" fails for very large pools -- File Changes -- M usr/src/lib/libzfs/common/libzfs_import.c (1) -- Patch Links -- https://github.com/openzfs/openzfs/pull/582.patch https://github.com/openzfs/openzfs/pull/582.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/openzfs/openzfs/pull/582 ------------------------------------------ openzfs: openzfs-developer Permalink: https://openzfs.topicbox.com/groups/developer/discussions/T5c88e9cffec03ab4-Mcd7b302ef5a931a665081eee Delivery options: https://openzfs.topicbox.com/groups