freebsd-dev/cddl/usr.sbin/zfsd
Alan Somers e6c8b3c98a zfsd(8): Close a race condition when onlining a disk paritition
When inserting a partitioned disk, devfs and geom will announce the whole
disk before they announce the partition. If the partition containing ZFS
extends to one of the disk's extents, then zfsd will see a ZFS label on the
whole disk and attempt to online it. ZFS is smart enough to activate the
partition instead of the whole disk, but only if GEOM has already created
the partition's provider.

cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c
	Add a zpool_read_all_labels method. It's similar to
	zpool_read_label, but it will return the number of labels found.

cddl/usr.sbin/zfsd/zfsd_event.cc
	When processing a DevFS CREATE event, only online a VDEV if we can
	read all four ZFS labels.

Reviewed by:	mav
MFC after:	3 weeks
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D11920
2017-08-24 19:48:41 +00:00
..
tests Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
callout.cc
callout.h zfsd: minor spelling fix. 2016-05-30 19:32:56 +00:00
case_file.cc Fix an unchecked return value in zfsd 2017-01-18 22:10:18 +00:00
case_file.h
Makefile Remove unnecessary variable (SRCDIR) replaced by SRCTOP in Makefile.common 2016-08-29 19:07:48 +00:00
Makefile.common Use SRCTOP instead of a homegrown definition for it (SRCDIR) 2016-08-29 19:06:40 +00:00
Makefile.depend DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
vdev_iterator.cc zfsd: Remove a redundant semicolon, 2016-05-31 21:23:57 +00:00
vdev_iterator.h
vdev.cc
vdev.h Add an empty virtual destructor to zfsd's Vdev class. This is needed 2016-08-29 18:51:49 +00:00
zfsd_event.cc zfsd(8): Close a race condition when onlining a disk paritition 2017-08-24 19:48:41 +00:00
zfsd_event.h
zfsd_exception.cc
zfsd_exception.h
zfsd_main.cc
zfsd.8
zfsd.cc zfsd(8): Remove pidfile on shutdown 2017-06-20 19:45:02 +00:00
zfsd.h
zpool_list.cc
zpool_list.h