freebsd-dev/lib
Brian Behlendorf c30d8ded0c Fix 'zpool import' detection issue
Before adding the entry to the configuration verify that the
device can be opened exclusively.  This ensures that as long
as multipathd is running the underlying multipath devices, which
otherwise appear identical to their /dev/mapper counterpart,
are pruned from the configuration.

Failure to do so can result in a result in the vdev appearing
as UNAVAIL when the vdev path provided to the kernel can't be
opened exclusively.

This check would normally be performed in zpool_open_func()
but placing it there would result in false positives because
it is called concurrently for many devices.


Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5387
2016-11-14 09:40:18 -08:00
..
libavl
libefi Fixes for issues found with cppcheck tool 2016-07-27 13:31:22 -07:00
libicp OpenZFS 4185 - add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R 2016-10-03 14:51:15 -07:00
libnvpair Add support for libtirpc 2016-04-28 09:27:40 -07:00
libshare Fix coverity defects: CID 147548 2016-10-31 16:56:10 -07:00
libspl Fix coverity defects: CID 150921, 150927 2016-10-14 09:40:08 -07:00
libunicode
libuutil Fix coverity defects: CID 147629 2016-11-08 16:41:31 -08:00
libzfs Fix 'zpool import' detection issue 2016-11-14 09:40:18 -08:00
libzfs_core DLPX-40252 integrate EP-476 compressed zfs send/receive 2016-09-13 09:58:58 -07:00
libzpool Add superscalar fletcher4 2016-11-04 10:53:03 -07:00
Makefile.am Illumos Crypto Port module added to enable native encryption in zfs 2016-07-20 10:43:30 -07:00