]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - contrib/groff/contrib/mom/momdoc/headfootpage.html
MFC r316908: 7541 zpool import/tryimport ioctl returns ENOMEM because provided buffer...
authorAndriy Gapon <avg@FreeBSD.org>
Wed, 24 May 2017 21:32:35 +0000 (21:32 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Wed, 24 May 2017 21:32:35 +0000 (21:32 +0000)
commitb6be31c7cacc80ef56363f81dd834a24eb977c04
tree0cec6815de85c30c62cdb0079771cdf8f6ad50c1
parent3a9c9239274d3850d634948ecab509dfd2a4edcc
parente7a96b6403f88b7e4bbac18350b560d8e91f565d
MFC r316908: 7541 zpool import/tryimport ioctl returns ENOMEM because provided buffer is too small for config

illumos/illumos-gate@8b65a70b763232c90a91f31eb2010314c02ed338
https://github.com/illumos/illumos-gate/commit/8b65a70b763232c90a91f31eb2010314c02ed338

https://www.illumos.org/issues/7541
  When calling zpool import, zpool does a few ioctls to ZFS.
  zpool allocates a buffer in userland and passes it to the kernel so that ZFS
  can copy info into it. ZFS will use it to put the nvlist that describes the
  pool configuration.
  If the allocated buffer is too small, ZFS will return ENOMEM and the call will
  have to be redone. This wastes CPU time and slows down the import process. This
  happens very often for the ZFS_IOC_POOL_TRYIMPORT call.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Pavel Zakharov <pavel.zakharov@delphix.com>
MFC after: 2 weeks
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_impl.h
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c